I am trying to clone from Github to my server. I have created the public key and put it in deploy keys on the repository. I have used ssh-add to add it on the server, but am still getting this error: permisssion denied (publickey). ssh -T git@github.com works. What am I missing?
To clarify:
I generated the public key on the server and put it on github, on the repository I want to clone.
ssh -T git@github from the server works, cloning the repository does not.