设置主机免密

 ssh-keygen 
cat id_rsa
cat id_rsa.pub 
cat id_rsa.pub >authorized_keys
chmod 600 authorized_keys 
scp -r ../.ssh/ 10.10.10.6:/root/

你可能感兴趣的:(linux,centos,ubuntu)