1、在本地生成秘钥对:
ssh-keygen -t rsa scp /opt/id_rsa.pub root@192.168.71.11:/root/.ssh/authorized_keys cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys #多个的话