目标:ip A 可以不用密码登入 b c d 机器
1、在A机器生成公钥
ssh-keygen
2、默认生成的公钥位置
ls ~/.ssh/id_rsa.pub
3、上传公钥到 b c d 服务器
ssh-copy-id -i ~/.ssh/id_rsa.pub root@b
4、 测试 ssh root@b
目标:ip A 可以不用密码登入 b c d 机器
1、在A机器生成公钥
ssh-keygen
2、默认生成的公钥位置
ls ~/.ssh/id_rsa.pub
3、上传公钥到 b c d 服务器
ssh-copy-id -i ~/.ssh/id_rsa.pub root@b
4、 测试 ssh root@b