当我尝试使用 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 客户端和服务器,但没有成功。
我该如何修复它?