我有一个问题:
$ 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
文件。 - boldnik