使用ssh实现linux服务器免登录 1.生成公钥和私钥:ssh-keygen -t rsa 然后一直按Enter,直到生成 2.上传sshssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.xxx