Page 1 of 1

Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer

Posted: 16. Jul 2020, 10:46
by Balamukunda Sahu
It seems I can't SSH to my virtual box.

I have a virtual box running with Win7. The host PC is also in Win7. The virtual box was created through Vagrant with the following Vagrantfile.

Code: Select all

Vagrant.configure("2") do |config|  
    config.vm.box = "http://aka.ms/vagrant-win7-ie11"  
end
Open cmd. Go to the root folder of the VagrantFile. Execute the following command:

Code: Select all

vagrant up
cmd displays:

Code: Select all

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...
Time out appears though the virtual box has already finished the boot. (Checking via VirtualBox Manager)

Execute the following command:

Code: Select all

vagrant ssh
cmd displays:

Code: Select all

ssh_exchange_identification: read: Connection reset by peer

Re: Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer

Posted: 16. Jul 2020, 14:57
by multiOS
Vagrant installations aren't supported on this forum. Have you tried Vagrant's own Forums?