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

posted @ 2018-11-20 10:50  Eureka912  阅读(2385)  评论(0编辑  收藏  举报