SSH config example

SSH config example to use different keys:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# bitbucket
Host bitbucket.org
HostName bitbucket.org
IdentitiesOnly yes
IdentityFile ~/.ssh/bitbucket_key
#PreferredAuthentications publickey
PasswordAuthentication no
User git

# github
Host github.com
HostName github.com
IdentitiesOnly yes
IdentityFile ~/.ssh/github_key
#PreferredAuthentications publickey
PasswordAuthentication no
User git