我已经下载了“openSSH-Win64”,所以我可以用我的PowerShell ssh进入Linux服务器。可变路径PowerShell - Win10
它工作,如果我进入该文件夹并致电ssh.exe
。 我不想每次需要使用SSH时进入文件夹。我试过this tutorial但它不起作用。当打字PowerShell的ssh
我得到这个错误:
ComSpec : The term 'ComSpec' is not recognized as the name of a cmdlet, function, script file, or operable program.
问题:
如何创建一个变量路径或东西,所以我型ssh
到我PowerShell的每一次它会自动调用这个可执行文件C:\Users\druml\Downloads\OpenSSH-Win64\OpenSSH-Win64\ssh.exe
?
UPDATE:
我能得到的命令行(CMD)这方面的工作,而不是使用PowerShell的。在我的情况下,我真的需要使用PowerShell。
您可能正在寻找一种在Windows中设置环境路径的方法。只是看到你在使用Win10。在这里,请查看如何设置环境变量:https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10 – flen
@flen do I需要重新启动我的Windows?它没有工作! – Lucas
我不记得......如果可以的话,我认为这是值得一试的。但是你确定你正确地包含了路径吗? – flen