同一客户端使用多份SSH Key

创建或添加如下内容:

Host example1.com
    HostName realname.example.com
    IdentityFile ~/.ssh/example1_rsa # 私钥

Host example2.com
    HostName example2.com
    IdentityFile ~/.ssh/example2_rsa 

  

原文地址:https://www.cnblogs.com/xzysaber/p/6401856.html