search

Home  >  Q&A  >  body text

git pull failed and ssh-agent configuration failed.

My VPN is connected to the git address, I git clone a repo, push it to it after local update, and then go to the VPN to git pull it always prompts permission denied. I don't know what went wrong. It was working fine a few days ago. Today I tinkered with ssh-agent to automatically start up and wrote some .bash_profile operations (I don't know much about it, I just followed online tutorials), but it didn't work. Then I deleted them all, and then manually ssh-add ~/.ssh/id_rsa_git was useless. Ask God for help.

[suiyimen@localhost ~]$ ls -la ~/.ssh
总用量 20
drwx------ 2 suiyimen suiyimen 4096  3月 27 02:48 .
drwxr-xr-x 9 suiyimen suiyimen 4096  3月 27 02:48 ..
-rw------- 1 suiyimen suiyimen  799  3月 15 05:48 authorized_keys
lrwxrwxrwx 1 suiyimen suiyimen   31  3月 26 21:21 id_rsa_git -> /tmp/ssh-DvbhW17778/agent.17778

Here it shows that id_rsa_git points to an agent (I don’t know what it means)

[suiyimen@localhost ~]$ eval ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-ZbmnP19993/agent.19993; export SSH_AUTH_SOCK;
SSH_AGENT_PID=19994; export SSH_AGENT_PID;
echo Agent pid 19994;
[suiyimen@localhost ~]$ ssh-add ~/.ssh/id_rsa_git
/home/suiyimen/.ssh/id_rsa_git: No such device or address
[suiyimen@localhost ~]$ 

It’s like id_rsa_git no longer exists.
Please help.

PHPzPHPz2790 days ago1119

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:53:31

    Regenerate SSH KEY and configure your public key on github

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:53:31

    I deleted it and was scolded by my boss.

    reply
    0
  • Cancelreply