powershell ssh-agent 无法工作


windows 10的powershell已经支持open-ssh的功能. 但是运行get-service ssh-agent似乎显示的stopped.

如下:

PS C:\WINDOWS\system32> get-service ssh-agent

Status   Name               DisplayName
------   ----               -----------
Stopped  ssh-agent          OpenSSH Authentication Agent

这个时候, 需要执行如下操作:

  1. 把SSH启动类型从""Disabled"设置为"Manual"
Get-Service | select -property name,starttype
Set-Service -Name ssh-agent -StartupType Manual
  1. 运行
Start-Service ssh-agent
ssh-add PathToYourKey

就可以了.

感谢Google和Github! 完整的链接在这里: https://github.com/PowerShell/Win32-OpenSSH/issues/1133


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM