【发布时间】:2012-11-20 09:51:48
【问题描述】:
我有以下问题:
$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已经检查了这个连接:
$ ssh -vT git@github.com
输出看起来不错,我的身份验证正确。
在进一步检查时,我注意到:
$ ssh-add -l
The agent has no identities.
我尝试运行 ssh-agent,但没有任何改变:
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-A1mhFqvqncuO/agent.766; export SSH_AUTH_SOCK;
SSH_AGENT_PID=767; export SSH_AGENT_PID;
echo Agent pid 767;
$ ssh-add -l
Could not open a connection to your authentication agent.
我正在使用 Arch Linux。任何帮助将不胜感激!提前致谢!
【问题讨论】:
-
显示你的
~/.ssh/config -
我的解决方案是重新生成我的公钥。似乎在 Ubuntu 下对我有用。
标签: git github ssh ssh-keys ssh-agent