无密码登陆
1、创建ssh密钥
ssh-keygen
2、拷贝ssh密钥
ssh-copy-id root@192.168.8.242
3、测试不需要输入密码即可登录
ssh root@192.168.8.242
转载于:https://blog.51cto.com/zuoshou/1739287
无密码登陆
1、创建ssh密钥
ssh-keygen
2、拷贝ssh密钥
ssh-copy-id root@192.168.8.242
3、测试不需要输入密码即可登录
ssh root@192.168.8.242
转载于:https://blog.51cto.com/zuoshou/1739287