git pull failed and ssh-agent configuration failed.
PHPz
PHPz 2017-05-02 09:51:31
0
2
1109

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.

PHPz
PHPz

学习是最好的投资!

reply all(2)
过去多啦不再A梦

Regenerate SSH KEY and configure your public key on github

洪涛

I deleted it and was scolded by my boss.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template