When trying to connect to Github on a new (I'm the first to try) Windows work computer, I'm getting this error:
permission denied (Public Key)
Following instructions on Github, I then tried
ssh -vT [email protected]
This told me that
ssh is not recognized as an internal or external command, operable program or batch file
Googling that, I found out that this message means "ssh is not in the PATH".
Trying to add it to my path, I found
Variable name: Path
Variable value: :\Program Files (x86)\Windows Live\Shared
What exactly do I enter to add ssh to the path. I'm not sure if it's
:\Program Files (x86)\Windows Live\Shared\ssh.exe
or something else...
You need to locate the directory that ssh.exe is in. You then need to go into System Properties (hit WINDOWS KEY+PAUSE), go to Advanced system settings, click Environment Variables... Scroll down in the scrolling window at the bottom, until you see "Path" under "Variable". Click it, click Edit...
If Git for windows is installed, Bash shell is installed with ssh and others. Bash shell is aware of the path of ssh. No need to add path of ssh in path environment. Install the PUTTY and go to: C:\Program Files\PuTTY, copy the icon "putty" and paste to C:\WINNT\system32. Done.
Go to the Settings > Apps > Optional features; Click Add a feature, select OpenSSH Server (OpenSSH-based secure shell (SSH) server, for secure key management and access from remote machines), and click Install You can also install sshd server using PowerShell: Add-WindowsCapability -Online -Name OpenSSH.Server*
Bash shell is aware of the path of ssh. No need to add path of ssh in path environment. Install the PUTTY and go to: C:\Program Files\PuTTY, copy the icon "putty" and paste to C:\WINNT\system32. Done. Click> start > Run > PUTTY & hit Enter.
You need to locate the directory that ssh.exe is in.
You then need to go into System Properties (hit WINDOWS KEY+PAUSE), go to Advanced system settings, click Environment Variables...
Scroll down in the scrolling window at the bottom, until you see "Path" under "Variable". Click it, click Edit...
Go to the end of the value, add a semi-colon if one isn't there already, and type the path to the directory that ssh.exe is in.
SSH.exe will be in C:\Program Files\Git\usr\bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With