Multiple SSH deploy keys with same hostname

ssh

#1

GitHub only allow 1 deploy keys per repository. How I can use multiple SSH deploy keys in my project?

When I enter private keys with same hostname (github.com), CircleCI create duplicate entry in .ssh/config

Host github.com
IdentitiesOnly yes
IdentityFile /home/ubuntu/.ssh/id_github.com

Host github.com
IdentitiesOnly yes
IdentityFile /home/ubuntu/.ssh/id_github.com

both 2 repos hosted in Github.


#2

Hey there! While a deploy key can only be used for one repository, you can set up a machine user on GitHub if you need to access more than one repo.

Check out https://circleci.com/docs/github-security-ssh-keys/#machine-user-keys for more details.


#3