在接收文件的服务器: 执行ssh-keygen -t rsa命令,多次回车默认即可将~/.ssh 里的id_rsa.pub下载下来后改名为authorized_keys 在发送文件的服务器: 执行mkdir -p ~/.ssh将authorized_keys放到~/.ssh里面