1.生成秘钥
ssh-keygen -t rsa
2.cat登录机的公钥文件id_rsa.pub
3.加入到目标机的authorized_keys文件中
4.给予目标机authorized_keys文件600权限
chmod600/root/.ssh/authorized_keys
1.生成秘钥
ssh-keygen -t rsa
2.cat登录机的公钥文件id_rsa.pub
3.加入到目标机的authorized_keys文件中
4.给予目标机authorized_keys文件600权限
chmod600/root/.ssh/authorized_keys