Using Multiple SSH Keys with Github

May 20, 2015

via http://www.freshblurbs.com/blog/2013/06/22/github-multiple-ssh-keys.html#tldr


Since Github doesn't allow us to reuse an SSH Key, the only sane solution is to jump through some hoops and generate + use multiple keys on the server itself. Let's look at some effective approaches of doing that.

Short version: define multiple hosts in the SSH config file for each repository, which use different SSH keys, then you can assign different deploy keys to each repo. But read the whole article for the full details.