1.生成公钥和私钥:ssh-keygen -t rsassh
而后一直按Enter,直到生成rsa
2.上传sshssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.xxxssh-key