我已經下載了「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