本地生成 rsa ssh-keygen 上传本地公钥至服务器 ssh-copy-id -i ~/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx 此处要输入root 密码 免密登录 ssh root@xxx.xxx.xxx.xxx