powershell ssh-agent 沒法工做

windows 10的powershell已經支持open-ssh的功能. 可是運行get-service ssh-agent彷佛顯示的stopped.git

以下:github

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

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

這個時候, 須要執行以下操做:shell

  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

就能夠了.windows

感謝Google和Github! 完整的連接在這裏: https://github.com/PowerShell/Win32-OpenSSH/issues/1133ssh

相關文章
相關標籤/搜索