我有以下问题:
$ 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。任何帮助将不胜感激!提前致谢!