1.生成公钥和私钥:ssh-keygen -t rsa
然后一直按Enter,直到生成
2.上传sshssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]