ssh-add无法打开与身份验证代理的连接 [英] ssh-add Could not open a connection to your authentication agent

查看:214
本文介绍了ssh-add无法打开与身份验证代理的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ssh代理有一个小问题. 确实,我无法使其正常运行,我也不明白为什么.

I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why.

这是控制台的输出:

我确定ssh代理正在运行. 供您参考,我使用的是Windows 7,并且尝试使用管理员权限运行gitbash,但这并没有改变任何内容.直到昨天一切都还不错,我什么也没改变.

I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything.

你们对为什么有任何想法吗?

Do you guys have any ideas why ?

推荐答案

只需升级到最新的 bash较新,而msysgit已过时)

解压缩

Unzip PortableGit-2.6.2-64-bit.7z.exe anywhere you want, and add C:\path\to\PortableGit-2.6.2-64-bit to your path.

然后致电C:\path\to\PortableGit-2.6.2-64-bit\git-bash.exe,您就可以开始了.

Then call C:\path\to\PortableGit-2.6.2-64-bit\git-bash.exe, and you are good to go.

检查$ HOME(echo $HOME)的值,并检查它是否是您有权写入的文件夹,其中有~/.sshgitlabgitlab.pub.

Check the value of $HOME (echo $HOME) and check it is a folder you have the right to write, where there is ~/.ssh with gitlab and gitlab.pub.

这篇关于ssh-add无法打开与身份验证代理的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆