Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer
Posted: 16. Jul 2020, 10:46
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.
Open cmd. Go to the root folder of the VagrantFile. Execute the following command:
cmd displays:
Time out appears though the virtual box has already finished the boot. (Checking via VirtualBox Manager)
Execute the following command:
cmd displays:
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"
endCode: Select all
vagrant upCode: 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...Execute the following command:
Code: Select all
vagrant sshCode: Select all
ssh_exchange_identification: read: Connection reset by peer