Skip to content

Instantly share code, notes, and snippets.

@shimomura1004
Last active January 2, 2016 08:39
Show Gist options
  • Save shimomura1004/8277713 to your computer and use it in GitHub Desktop.
Save shimomura1004/8277713 to your computer and use it in GitHub Desktop.
github のプライベートリポジトリ毎に鍵を切り替える設定 http://www.snipe.net/2013/04/multiple-github-deploy-keys-single-server/
Host repo-a-shortname github.com
Hostname github.com
IdentityFile /home/deployme/.ssh/repo-a-rsa
#User username-on-remote-machine
Host repo-b-shortname github.com
Hostname github.com
IdentityFile /home/deployme/.ssh/repo-b-rsa
#User username-on-remote-machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment