Reputation: 15
I've downloaded "openSSH-Win64", so I can ssh into a Linux server using my PowerShell.
It works if I go into the folder and call the ssh.exe
.
I don't wanna go into the folder every time I need to use SSH.
I've tried this tutorial but it doesn't work. When typing ssh
on powershell I get this error:
ComSpec : The term 'ComSpec' is not recognized as the name of a cmdlet, function, script file, or operable program.
QUESTION:
How can I create a variable path or something so every time I type ssh
into my PowerShell it will automatically call this executable file C:\Users\druml\Downloads\OpenSSH-Win64\OpenSSH-Win64\ssh.exe
?
UPDATE:
I was able to get this working on the Command Line (cmd), not using PowerShell. In my case I really need to use PowerShell.
Upvotes: 0
Views: 1419
Reputation: 15
I was able to do this by following: https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10
Once you have added the new Variable, make sure to restart PowerShell as @J. Bergmann
has mentioned.
Upvotes: 1