Adn*_*hir 5 windows ssh openssh powershell-7
当我尝试使用 powershell 7 来使用 ssh 时,它会抛出错误:
ssh: The term 'ssh' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Run Code Online (Sandbox Code Playgroud)
但它在 cmd 和 windows powershell 上运行良好

我还注意到我无法将目录更改为 OpenSSH (C:\Windows\System32\OpenSSH)

我尝试将 Openssh 添加到系统路径,安装 openssh 客户端和服务器,但没有成功。
我该如何修复它?
我终于解决了这个问题。
安装 PowerShell 时,我常常选中启用 PowerShell 远程处理的复选框。不过,这次我没有,现在 SSH 可以工作了。
解决方法如下:

这就是我所要做的。
| 归档时间: |
|
| 查看次数: |
485 次 |
| 最近记录: |