I’d like to use a specific public/private key pair on a project I am working on. I managed to get the XCode git repo working by copying my keypair to ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub but I would prefer to name them id_github/id_github.pub or something similar (and keep my existing default keypairs as id_rsa). This is easily achieved with the git commandline using ssh config file (http://help.github.com/multiple-ssh-keys/).
However I cannot see how to do this with XCode 4. I start it up, click “Connect to a repository” and if I specify ssh://github:projectname (where github is an ssh config entry containing my username) it tells me that the “Host is unreachable”.
Does anyone know how to do this or if it is at all possible in XCode?
The most reasonable workaround for this is just to upload multiple keys to github. I didn’t realize that was possible at the time I asked the question but it solves the problem for me.
Of course, just using the git command line is always optimal 🙂