Powershell中不提供git的SSH
我已经安装了posh git。在GitBash中,ssh-v可以工作,但在powershell中则不行。我错过了什么,我该怎么做 在powershell中键入ssh-v时,在powershell中出现以下错误Powershell中不提供git的SSH,powershell,ssh,Powershell,Ssh,我已经安装了posh git。在GitBash中,ssh-v可以工作,但在powershell中则不行。我错过了什么,我该怎么做 在powershell中键入ssh-v时,在powershell中出现以下错误 ssh : The term 'ssh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or i
ssh : The term 'ssh' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1 + ssh -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (ssh:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
将C:\Program Files\Git\usr\bin添加到路径系统变量验证C:\Program Files\Git\usr\bin是否在您的路径中(在64位计算机上)。尝试在powershell windows中键入$env:Path。哇..就是这样…非常感谢..并通过运行以下命令进行修复:$env:Path+=“C:\Program Files\Git\usr\bin”hi请参阅此链接以了解ssh问题-[link]()作者已经很好地指导了解决方法