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
這個時候, 需要執行如下操作:
- 把SSH啟動類型從""Disabled"設置為"Manual"
Get-Service | select -property name,starttype
Set-Service -Name ssh-agent -StartupType Manual
- 運行
Start-Service ssh-agent
ssh-add PathToYourKey
就可以了.
感謝Google和Github! 完整的鏈接在這里: https://github.com/PowerShell/Win32-OpenSSH/issues/1133