* referred by http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys
In .ssh directory, if there is a config file, ssh keys can be controlled by it.
For example, ~/.ssh/config would be
01 02 03 04 05 06 07 08 09 10 11 12 13 | Host *.home.lan IdentityFile ~/. ssh /id_dsa .home User kbsingh Host *.vpn IdentityFile ~/. ssh /id_rsa .work User karanbir Port 44787 Host *.d0.karan.org IdentityFile ~/. ssh /id_rsa .d0 User admin Port 21871 |
id_rsa.xx is the private key.
Bread & Cup Blog: Multiple ssh private keys http://bit.ly/lY6D6g