vim /etc/ssh/ssh_config
编辑 /etc/ssh/ssh_config,找到 GSSAPIAuthentication no 这行,删掉前面的注释,然后wq保存退出
重新开始clone
踩坑
1、有一天,不知道做了什么操作,发现git 拉取提示没权限。
重新生成sshkey 之后还是连不上,执行git pull操作是提示
git@github.com's password:
输入啥密码也不行(关键我也不知道哪个密码,用git 用户密码是不行的)
最后在~/.ssh/config 文件里配置 下面的配置就ok了。最关键的是 Hostname ssh.github.com。
Host github.com
#User user@qq.com
Hostname ssh.github.com
#PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
#Port 443