I have a server on digitalocean and I want to connect it to git. (not even push anything, just connect).
When I test my connection with: ssh -T git@github.com
.
I get an error of git@github.com: Permission denied (publickey).
I have tried everything to try to make the connection work. On my computer the connection works, and the key on my root server is linked to my local id_rsa
. The key is the same and I checked this with ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
on both my server and computer.
I am following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-laravel-application-with-nginx-on-ubuntu-16-04
Any ideas? I am stuck and going insane.