How do I exactly add ssh to PATH on windows? How do I exactly add ssh to PATH on windows? windows windows

How do I exactly add ssh to PATH on windows?


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 Git for windows is installed,Bash shell is installed with ssh and others.

You can run ssh from within Bash:

From the Command Prompt run the command:

bash -c "ssh -vT git@github.com"

Bash shell is aware of the path of ssh.

No need to add path of ssh in path environment.