Answer the question
In order to leave comments, you need to log in
Why does ssh-agent fail and do I need to add the key again via ssh-add (Debian 8x64)?
Hello!
There is a VDS on Debian 8 x64, I use it to test projects (Laravel / Flask) before uploading to the client. I use GitHub with a paid annual subscription (to be able to create private repositories).
So, every time I go to the server via SSH to roll new changes in the project, I have to first execute eval "$(ssh-agent -s)"
(to check the pid of the agent), then add the RSA key ssh-add ~/.ssh/rsa_project_key
, and only after that it allows me to do git pull
..
If this is not done, then it git pull
outputs:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question