创建ssh密钥对 使用ssh-keygen命令 ssh-keygen -t rsa 上传到对应服务器 使用ssh-copy-id命令 ssh-copy-id username@remote-server 测试下 ssh username@remote-server