`ssh` executable not found in any directories in the %PATH%

风格不统一 提交于 2019-12-02 17:05:50

Adding C:\Program Files\Git\usr\bin to the PATH environment variable.

Add it manually or I believe you could run this in cmd:

set PATH=%PATH%;C:\Program Files\Git\usr\bin

updated from @Ygor Thomaz's comments

or (64 bits)

set PATH=%PATH%;C:\Program Files\Git\usr\bin 

If this doesn't fix your problem, go through :

Get SSH working on Vagrant/Windows/Git

You can alternatively install openssh from here and then you can add the ssh.exe to your PATH by:

set PATH=%PATH%;C:\Program Files (x86)\OpenSSH\bin

or

set PATH=%PATH%;C:\Program Files\OpenSSH\bin

With Windows 10 I also couldn't get the 'set PATH' option to work. But when I amended the PATH variable through System Settings and started a new command prompt it worked fine.

Also, putty worked perfectly after I read the screen which told me to use a username of 'core'.

'core' was a requirement of my configuration which was trying to launch CoreOS.

Adding C:\Program Files\Git\usr\bin to the PATH environment variable didn't work for me. So I configured PUTTY for ssh connection.

This well-written illustrative tutorial gives a great overview on ways to setup Vagrant SSH. The first way is via Git and the second way describes how to use Putty. It is very easy to follow.

Running Vagrant SSH on Windows

In my case even adding ssh to the PATH didn't solve the problem. What I had to do is connect to vagrant with ssh manually. After executing vagrant up, instead of executing vagrant ssh, I do this:

ssh vagrant@127.0.0.1 -p 2222

And the password is "vagrant"

For getting all the information about the ip, port and user you can use

vagrant ssh-config

Ope this helps somebody...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!