Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Last active December 15, 2015 23:39
Show Gist options
  • Save t-oginogin/5341650 to your computer and use it in GitHub Desktop.
Save t-oginogin/5341650 to your computer and use it in GitHub Desktop.

複数のid_rsa(sshの鍵)をアクセスするサイトに応じて使い分ける

~/.ssh/configを作成する

Host github
  HostName github.com
  User xxxxx
  IdentityFile ~/.ssh/id_rsa_github

Host heroku
  HostName *.heroku.com
  User xxxxx
  IdentityFile ~/.ssh/id_rsa_heroku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment