Debug git ssh problems

You can force git to show the ssh logs by using:

add-ssh-key.sh
Copy

GIT_SSH_COMMAND="ssh -v" git clone git@github.com:my-username/my-repository

The output will show you which keys ssh tried to use to connect to github.