config
file of ssh
in ~/.ssh
one can specify host specific ssh options, including varying identities and users.
from: http://www.gelato.unsw.edu.au/archives/git/0611/31044.html
Example: $> cat ~/.ssh/config
Host private.host.com
User myname
Hostname host.com
IdentityFile ~/.ssh/private-identity
Host public.host.com
User anotherName
Hostname host.com
IdentityFile ~/.ssh/public-identity
Host git.host.com
User git
Hostname host.com
IdentityFile ~/.ssh/git-identity
ssh host.com -l myname -i ~/.ssh/private-identity
ssh host.com
git
git clone git.host.com