Machin A是我的本地电脑。
机器B是我的远程ip,它的ip是vps_ip1。
机器C是另一台远程ip,其ip为vps_ip2。
设置ssh自动登录(没有密码)如下。
步骤1:在机器A
上创建身份验证SSH
ssh-keygen -t rsa -P ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): #it is a comment ,input nothing just enter
Your identifica