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