在Windows 10上启动ssh-agent失败:“无法启动ssh-agent服务,错误:1058". [英] Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058"
问题描述
当我尝试通过输入Start-Service ssh-agent
在Windows 10上通过PowerShell(带右移或不带右移)启动ssh-agent时,出现错误
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
无法启动ssh-agent服务,错误:1058
unable to start ssh-agent service, error :1058
当我通过Get-Service ssh-agent
检查服务是否正在运行时,返回服务已停止.
When I check of the service is running via Get-Service ssh-agent
is returns that the service is stopped.
如何使ssh-agent运行?
How can I get the ssh-agent running?
推荐答案
我通过通过Set-Service ssh-agent -StartupType Manual
将ssh-agent的StartupType更改为Manual
来解决了这个问题.
I solved the problem by changing the StartupType of the ssh-agent to Manual
via Set-Service ssh-agent -StartupType Manual
.
然后,我可以通过Start-Service ssh-agent
或仅通过ssh-agent.exe
来启动服务.
Then I was able to start the service via Start-Service ssh-agent
or just ssh-agent.exe
.
这篇关于在Windows 10上启动ssh-agent失败:“无法启动ssh-agent服务,错误:1058".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!