1.git bash: ssh-keygen -t rsa 2.id_rsa.pub 上传到linux服务器中 ~/.ssh/authorized_keys 3.修改文件权限 chmod 600 ~/.ssh/authorized_keys