https://www.cnblogs.com/xiaoaofengyue/p/8080639.html
2.免密登录方法
2.1 通过ssh-copy-id的方式
命令: ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<remote_ip>
2.2 通过scp将内容写到对方的文件中
命令:scp -p ~/.ssh/id_rsa.pub root@<remote_ip>:/root/.ssh/authorized_keys