Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Balamukunda Sahu
Posts: 2
Joined: 7. Jun 2018, 19:28
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: CentOS
Location: India
Contact:

Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer

Post 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
multiOS
Volunteer
Posts: 1227
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, BSD
Location: United Kingdom

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

Post by multiOS »

Vagrant installations aren't supported on this forum. Have you tried Vagrant's own Forums?
Post Reply