Logo Blog

Debug git ssh problems

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

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

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