addicted2unix
addicted2unix

Reputation: 517

Vagrant ssh in Windows: ssh_exchange_identification

So I'm writing guides to get vagrant working on all different operating systems, and I've saved the worst for last... Windows. I've installed virtualbox, vagrant, and a native ssh command line client so I can execute ssh servername successfully. I am also able to run vagrant up, and it brings up the machine (I can see in the VBox GUI), but hangs at "waiting for VM to boot. This can take a few minutes...".

Trying to run vagrant ssh from the command prompt yields an error, sure enough.

ssh_exchange_identification: Connection closed by remote host

I'm fairly new to networking, and I have no idea what is going wrong here. Is it an issue with the private key? (I have the paths for the private key configured properly), or is it a Windows network issue? I haven't been able to find the answer online yet and would appreciate some help. Thanks! A fix would be amazing.

Upvotes: 5

Views: 2948

Answers (1)

Shankar ARUL
Shankar ARUL

Reputation: 13740

You can try rebooting the machine with

vagrant reload (CTRL + C if it takes too long)

And then try

vagrant up

Now you should be able to ssh back in with

vagrant ssh

Upvotes: 1

Related Questions