gitlab - git ssh拉取代码报错,http方式可以
高洛峰
高洛峰 2017-05-02 09:40:03
0
0
628

一个放在gitlab上的项目
我用 ssh协议的 git@……这样的地址拉取代码的时候提示:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

而用http协议可以拉取,
我的ssh公钥文件已经配置了是可以使用的

Host XXX.com
    HostName XXX.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

代码现在是可以拉, 但是不知道问题愿意是什么?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!