1、在~目录下生成sshkey ssh-keygen 2、复制生成的key cd ~ cat .ssh/id_rsa.pub 3、到git界面setting页面添加sshkey 转载于:https://www.cnblogs.com/hcy-fly/p/9812666.html