在client端生产用户的公私钥对:
1、ssh-keygen -t rsa
id_rsa:私钥
id_rsa.pub:公钥
2、scp id_rsa.pub root@目标IP:/root/.ssh/anthorized_keys
3、在目标机上:chmod 600 authorized_keys
在client端生产用户的公私钥对:
1、ssh-keygen -t rsa
id_rsa:私钥
id_rsa.pub:公钥
2、scp id_rsa.pub root@目标IP:/root/.ssh/anthorized_keys
3、在目标机上:chmod 600 authorized_keys