Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer

It seems I can not use SSH for my virtual box.

I have a virtual box with Win7. The host computer is also located in Win7. A virtual window was created through Vagrant with the following Vagrantfile.

Vagrant.configure("2") do |config| config.vm.box = "http://aka.ms/vagrant-win7-ie11" end 

Open cmd. Go to the root folder of VagrantFile. Run the following command:

 vagrant up 

cmd displays:

 Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key Timed out while waiting for the machine to boot... 

A timeout appears, although the virtual box has already completed the download. (Verification through VirtualBox Manager)

Run the following command:

 vagrant ssh 

cmd displays:

 ssh_exchange_identification: read: Connection reset by peer 

When debugging a stray ssh, I could find some useful logs:

 INFO subprocess: Starting process: ["C:\\Program Files\\Git\\usr\\bin/ssh.EXE"] INFO ssh: Invoking SSH: ss [" vagrant@127.0.0.1 ", "-p", "2222", "-o", "Compression=yes", "-o", "DSAAuthentication=yes", "-o", "LogLevel=FATAL", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-o", "IdentitiesOnly=yes", "-i", "C:/Users/hostpcname/.vagrant.d/insecure_private_key"] 

Can you suggest several ways to get out of this? I tried a non-Windows image - hashicorp / exact64, and it worked fine.

+7
windows vagrant ssh virtualbox
source share
1 answer

I have the same problem. Do this by following this step and working for me.

roaming reboot

and

tramp ssh

again and works fine

+5
source share

All Articles