Discussion Git Others

Best way to use multiple SSH private keys on one client

From my .ssh/config:

Host myshortname realname.example.com
    HostName realname.example.com
    IdentityFile ~/.ssh/realname_rsa # private key for realname
    User remoteusername

Host myother realname2.example.org
    HostName realname2.example.org
    IdentityFile ~/.ssh/realname2_rsa  # different private key for realname2
    User remoteusername

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *