Saturday, December 11, 2010

Per Host SSH Key Configuration

You can automatically specify an SSH private key, via local configuration, when connecting to SSH hosts. This is especially helpful when using Git to connect to multiple repositories which require different SSH keys.

On a Unix client (or compatible shell such as cygwin, Xming, or msysgit ), create/modify ~/.ssh/config
IdentityFile ~/.ssh/OTHER_ID_RSA

No comments: