需要免密码登陆的机器mkdir /root/.ssh
cd /root/.ssh
ssh-keygen -t rsacat id_rsa.pub
目标机器cp -rp id_rsa.pub authorized_keysvim authorized_keys