多个ssh private key的管理办法

在$home/.ssh/config中写入如下内容

Host 192.168.1.1
IdentityFile $PATH.sshid_rsa

Host 192.168.1.2
IdentityFile $PATH.sshid_rsa2

原文地址:https://www.cnblogs.com/merryfreespace/p/5065394.html