ssh has the -i option to tell which private key file to use when authenticating:
-i identity_fileSelects a file from which the identity (private key) for RSA or DSA authentication is read. The default is
~/.ssh/identityfor protocol version 1, and~/.ssh/id_rsaand~/.ssh/id_dsafor protocol version 2. Identity files may also be specified on a per-host basis in the configuration file. It is possible to have multiple-ioptions (and multiple identities specified in configuration files).
Is there a similar way to tell git which private key file to use on a system with multiple private keys in the ~/.ssh directory?