在$home/.ssh/config中写入如下内容
Host 192.168.1.1
IdentityFile $PATH\.ssh\id_rsa
Host 192.168.1.2
IdentityFile $PATH\.ssh\id_rsa2
在$home/.ssh/config中写入如下内容
Host 192.168.1.1
IdentityFile $PATH\.ssh\id_rsa
Host 192.168.1.2
IdentityFile $PATH\.ssh\id_rsa2
转载于:https://www.cnblogs.com/merryfreespace/p/5065394.html