ssh-add 报错:Error connecting to agent No such file or directory

问题描述

在添加 SSH 时报错 Error connecting to agent: No such file or directory
image1

解决方法

1. 打开 PowerShell

管理员身份打开 Windows PowerShell

2. 查看服务是否启动

get-service ssh*

image2

3. 启动服务

Set-Service -Name ssh-agent -StartupType Manual
Start-Service ssh-agent

4. 查看秘钥

查看 ssh-agent 已经添加的秘钥

ssh-add -l

image3

参考文档

Windows ssh-add 报错 Error connecting to agent No such file or directory - 江城撅嘴的川羌

posted @ 2024-10-15 16:54  意气风发胡小图  阅读(612)  评论(0)    收藏  举报