sshservicewindows-10openssh

Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058"


When I try to start the ssh-agent on Windows 10 via PowerShell (with elevated right or without) by entering Start-Service ssh-agent I get the error

unable to start ssh-agent service, error :1058

When I check of the service is running via Get-Service ssh-agent is returns that the service is stopped.

How can I get the ssh-agent running?


Solution

  • I solved the problem by changing the StartupType of the ssh-agent to Manual via Set-Service ssh-agent -StartupType Manual.

    Then I was able to start the service via Start-Service ssh-agent or just ssh-agent.exe.