在linux上git clone时遇到
fatal: unable to access 'https://github.com/xx/xx.git/': Failed connect to github.com:443; Connection timed out时如图

解决方法:把https:改成git

git clone git@github.com:xx/xx.git

如果没有成功,遇上以下报错

no such identity: /root/.ssh/id_rsa: No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.

配置用户名,邮箱

git config --global user.email "123@126.com"

给该邮箱设置公钥

ssh-keygen -t rsa -C "123@126.com"

回车三次后 得到如图

设置成功后进入~/.ssh,

 cd ~/.ssh
cat id_rsa.pub

复制公钥(ssh-rsa到邮箱那一块就是了)到github上的settings上添加设置的公钥

后面再回linux上重新克隆就没有问题了

fatal: unable to access ‘https://github.com/xxx/123.git/‘: Failed connect to github.com:443 解决方案相关推荐

  1. fatal: unable to access ‘https://gitee.com/xxx.git/‘: SSL certificate problem:

    早上上班打开电脑,按照惯例更新一下代码,嗯?怎么更新不了了呢!换个项目试试,哎?!怎么还不行,还报错fatal: unable to access 'xxx.git/': SSL certificat ...

  2. git解决fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

    403无权限访问 windows用户凭据不一致导致 解决:控制面板->凭据管理器->windows凭据->git:https:gitxxx(把当前账户名更改上去)

  3. Git ----fatal: unable to access ‘https://gitee.com/***.git/‘: SSL certificate problem: unable

    fatal: unable to access 'https://gitee.com/gzllkm/GZL.git/': SSL certificate problem: unable to get ...

  4. fatal: unable to access ‘https://github.com/xxx/‘: Failed to connect to 127.0.0.1 port 7890: Connect

    git clone 项目的时候遇到报错: fatal: unable to access 'https://github.com/xxx/': Failed to connect to 127.0.0 ...

  5. fatal: unable to access ‘https://github.com/xxxxx/xxx.git/‘: OpenSSL SSL_read: Connection was reset,

    写完代码想push到GitHub上: git push origin master 但是出问题了: fatal: unable to access 'https://github.com/xxxxx/ ...

  6. 【Linux】git clone报错fatal: unable to access ‘https://github.com/xxx.git/‘: Encountered end of file

    目录 1.问题 2.解决 3.参考 1.问题 git clone代码时突然报错...貌似时不时遇到这个问题,这次遇到了准备简单mark下 git clone https://github.com/xx ...

  7. 【git push指令提交项目报错】 fatal: unable to access ‘https://github.com/xxxxx/xxx.git/‘: OpenSSL SSL_read: Co

    在用git push指令提交项目时,由于网络等各种原因时常报错,针对以下几个问题,本文提供解决方法,亲测有效! 问题一: fatal: unable to access 'https://github ...

  8. git clone 出现fatal: unable to access ‘https://github.com/xxx: Failed to connect to github.com

    问题描述: 使用git clone命令时,出现如下错误: fatal: unable to access 'https://github.com/xxx': Failed to connect to ...

  9. 【Git 问题及解决方案】fatal: unable to access ‘https://github.com/xxx/yyy.git/‘: OpenSSL SSL_read: Con

    一.问题 执行命令 git push origin master,出现如下问题: fatal: unable to access 'https://github.com/xxx/yyy.git/': ...

最新文章

  1. TermCriteria模板类
  2. php自动关机代码,win10怎么设置自动关机
  3. python中mode_python中的model模板中的数据类型
  4. Shell中的循环语句
  5. 同时买票是怎么实现的_刷脸进站,语音买票!广州地铁这波操作666~
  6. 从Chrome源码看audio/video流媒体实现二
  7. 企业五大模式,多看两遍你就懂了
  8. [2014-12-30]如何动态构造Lambda表达式(动态构造Lambda查询条件表达式)
  9. 李宏毅机器学习笔记day3
  10. 栅栏密码(Fence crypto)
  11. SPSS教程—进行皮尔逊相关性分析的步骤
  12. 海思3518C 4G模块移植及运用
  13. 解决虚拟机IP地址无法获取和网络无法连接
  14. autodesk fbx sdk sample里面的工程无法调试解决方法
  15. Dreaming to Distill: Data-free Knowledge Transfer via DeepInversion
  16. 微信小程序实战八:优惠券页面的实现
  17. 四种环境下编译nanomsg库
  18. 前置机应用服务器,web服务器前置机(erp)部署步骤.pdf
  19. JAVA环境变量配置详解(全网最新详细教程)
  20. 《征服老板:零基础做出高逼格PPT》笔记(四)

热门文章

  1. 企业如何有效防止内部文件泄密风险...
  2. springBoot二维码生成案例
  3. 免费不限速跨平台文件传输神器—文件疯巢
  4. css属性之padding和margin
  5. [Latex] 自动换行 | 正文两端对齐
  6. 关于lua中显示绝对时间和相对时间
  7. APP开发流程注意事项有哪些
  8. 精通lambda表达式:Java多核编程pdf
  9. 同时操作(All-At-Once Operation)
  10. soul从入门到进阶05——soul-bootstrap数据同步流程