在 Windows 10 上启动 ssh-agent 失败:“无法启动 ssh-agent 服务,错误:1058" [英] Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058"
问题描述
当我尝试通过 PowerShell 启动 Windows 10 上的 ssh-agent(无论是否提升权限),输入 Start-Service 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 将 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屋!