If you are using vagrant, you probably-statistically are using git. Make sure you have its binary folder on your path, because that path contains 'ssh.exe'.
Now, modify C:\vagrant\vagrant\embedded\lib\ruby\gems\1.9.1\gems\vagrant-1.0.3\lib\vagrant\ssh.rb
to comment out the faulty Windows check and add a real SSH check:
# if Util::Platform.windows?
# raise Errors::SSHUnavailableWindows, :host => ssh_info[:host],
# :port => ssh_info[:port],
# :username => ssh_info[:username],
# :key_path => ssh_info[:private_key_path]
# end
which = Util::Platform.windows? ? "where ssh >NUL 2>&1" : "which ssh >/dev/null 2>&1"
raise Errors::SSHUnavailable if !Kernel.system(which)
Now you can do vagrant ssh
. Happy camper again!
Hi guys,
I have installed vagrant 1.7.4 and VBox 5x and all was working well but after of update git 1.9.x to the last version 2.7.0 on windows and now the ssh is not working. I put the path variable and I changed the code like the example here but without result and I think the solution to change the ssh.rb is not the same for the last version on vagrant.
I appreciated any help. Thanks!