git Authentication failed解决办法
2017-12-16 21:50
561 查看
本文以码云的使用为例:
出现了这种Authentication failed的原因是:git的仓库地址采用了https。解决办法有2种:
第1种:仓库的clone采用ssh方式:
第2种:为项目配置公钥(本文主要讲解这种方法):
1)打开要添加公钥的项目的管理选项,配置公钥:
2)具体公钥生成方法,请参考码云平台帮助文档。
3)拉取代码:
每次clone/pull/push码云都要输入密码,请参考我另一篇博客:
git 每次clone/pull/push码云都要输入密码的解决方案
出现了这种Authentication failed的原因是:git的仓库地址采用了https。解决办法有2种:
第1种:仓库的clone采用ssh方式:
第2种:为项目配置公钥(本文主要讲解这种方法):
1)打开要添加公钥的项目的管理选项,配置公钥:
2)具体公钥生成方法,请参考码云平台帮助文档。
3)拉取代码:
每次clone/pull/push码云都要输入密码,请参考我另一篇博客:
git 每次clone/pull/push码云都要输入密码的解决方案
相关文章推荐
- Peer authentication failed for user "postgres" 的解决办法
- Pushing to Git returning Error Code 403 fatal: HTTP request failed 新解决办法
- Git fatal: Authentication failed for '***' 错误解决
- VS2013中,ReSharper 和团队管理插件Git共用时报“Failed modify to document”错误的临时解决办法。
- 关于连接PostgreSQL时提示 FATAL: password authentication failed for user "连接用户名" 的解决办法
- git clone 下载速度0bytes 出现error: RPC failed; curl 18 transfer closed with outstanding read data 解决办法
- git - error: failed to push some refs to 'https://github.com/.......git'' 解决办法
- error: failed to push some refs to git的解决办法
- Android Studio Git Push failed: fatal: Could not read from remote repository 解决办法
- javax.mail.AuthenticationFailedException: 535 Error: authentication failed的解决办法
- SASL authentication DIGEST-MD5 failed解决办法
- Git error: unpack failed: error Missing tree 解决办法
- pgadmin3 新建服务器出现错误 Peer authentication failed for user "postgres" 的解决办法
- testsaslauthd出现0: NO "authentication failed"错误提示的解决办法
- Visual Studio 2017 Git failed with a fatal error的解决办法
- git - error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 解决办法
- Git 添加 SSH-KEY 报错 Could not open a connection to your authentication agent. 的解决办法
- (诊断)解决GitHub使用双因子身份认证“Two-Factor Athentication”后无法git push 代码的“fatal: Authentication failed for ...”错误
- VS 2017 Git failed with a fatal error的解决办法
- 在git bash中输入git init 提示错误信息: fatal: open /dev/null or dup failed: No such file or directory的解决办法