生成一个密匙 ssh-keygen -t rsa发送密匙到目标服务器中 cd ~/.ssh ssh-copy-id -i id_rsa.pub root@192.168.50.131 输入对应密码验证 ssh 192.168.50.131 如果可以直接登录,说明已经成功