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

前端 未结 6 1957
无人共我
无人共我 2021-01-31 09:09

ERROR:

c:\\Users\\dhawal.vora>vagrant ssh
`ssh` executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cyg         


        
相关标签:
6条回答
  • 2021-01-31 09:23

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

    0 讨论(0)
  • 2021-01-31 09:28

    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...

    0 讨论(0)
  • 2021-01-31 09:36

    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
    
    0 讨论(0)
  • 2021-01-31 09:39

    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.

    0 讨论(0)
  • 2021-01-31 09:44

    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

    0 讨论(0)
  • 2021-01-31 09:45

    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

    0 讨论(0)
提交回复
热议问题