【错误记录】PyCharm 中从 GitHub 中 Clone 代码到本地报错 ( OpenSSL SSL_read: Connection was reset, errno 10054 )

简介: 【错误记录】PyCharm 中从 GitHub 中 Clone 代码到本地报错 ( OpenSSL SSL_read: Connection was reset, errno 10054 )

文章目录

一、报错信息

二、解决方案





一、报错信息


在 PyCharm 中从 GitHub 中 Clone 代码到本地报错 :


10:01:37.091: [C:\Users\octop\PycharmProjects] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false clone --progress --recurse-submodules https://github.com/han1202012/ELF_Parser.git -- ELF_Parser
Cloning into 'ELF_Parser'...
fatal: unable to access 'https://github.com/han1202012/ELF_Parser.git/': OpenSSL SSL_read: Connection was reset, errno 10054

image.png








二、解决方案


最简单的方法 , 爬个梯子 , 就能解决上述问题 , GitHub 对国内支持很差 ;


如果没有梯子 , 使用下面的方法解决 ;



如果想要裸连使用 GitHub , 参考 【错误记录】GitHub 提交代码失败、获取代码失败、连接超时、权限错误、ping 请求连接超时 ( 查找域名对应 IP | 设置 host 文件 ) 博客 ;


查找 github.global.ssl.fastly.net 和 github.com 域名对应的有效 IP 地址 , 配置到 C:\Windows\System32\drivers\etc\hosts 文件中 ;


一定要注意 , 下面的两个 IP 地址在 2021 年 10 月 28 日 是有效的 , 不能保证一直有效 ; 如果无效 , 到 到 https://www.ip138.com/ 地址查询 github.com , github.global.ssl.fastly.net 这两个域名对应的 IP 地址是多少, 并且经过验证后 , 再设置到 hosts 文件中 ;



配置对应域名的 IP 地址 : 在 C:\Windows\System32\drivers\etc\hosts 配置如下内容 ;


140.82.114.4 github.com
151.101.77.194 github.global.ssl.fastly.net




配置完毕后的效果 :


image.png


设置了 hosts 文件 , GitHub 中的源代码下载成功 ;

image.png


目录
相关文章
|
缓存 网络协议 Linux
百度搜索:蓝易云【解决github push/pull报错443】
通过以上方法,你有望解决GitHub push/pull报错443的问题。如果问题仍然存在,建议检查GitHub的状态页面,看是否有正在维护或故障的情况。
324 3
|
安全 网络安全 开发工具
百度搜索:蓝易云【git无法使用git协议clone github仓库问题解决方法】
通过尝试以上解决方法,你应该能够解决无法使用Git协议克隆GitHub仓库的问题。选择适合你网络环境和要求的方法,并根据需要进行相应的配置。
805 2
|
9月前
|
网络协议 开发工具 git
解决 git 报错 “fatal: unable to access ‘https://github.com/.../.git‘: Recv failure Connection was rese
在使用 Git/Git小乌龟 进行代码管理的过程中,经常会遇到各种各样的问题,其中之一就是在执行 git clone 或 git pull 等操作时出现 “fatal: unable to access ‘https://github.com/…/.git’: Recv failure Connection was reset” 的报错。这个问题通常是由网络连接问题或代理设置不正确导致的。在我的个人使用经验中,我亲自尝试了四种方法,它们都能够有效地解决这个报错。个人比较推荐方法二。
5984 1
|
开发工具 git
github clone Failed to connect to github.com port 443 after xxx ms
github clone Failed to connect to github.com port 443 after xxx ms
1964 2
|
网络协议 Shell 网络安全
开发工具使用之 github 私人仓库Clone 失败的问题
这篇文章介绍了解决GitHub上私人仓库克隆失败的问题,通过检查本地SSH key的存在与否、生成新的SSH key、添加SSH key到GitHub以及使用SSH方式克隆私有仓库的步骤来解决这个问题。
开发工具使用之 github 私人仓库Clone 失败的问题
|
数据安全/隐私保护
github报错(完美解决):获取token。remote: Support for password authentication was removed on August 13, 2021.
这篇文章介绍了如何在GitHub上解决因密码认证被移除而导致的推送错误,通过创建和使用个人访问令牌(token)来代替密码进行身份验证。
4093 0
github下载的.ipynb文件报错unreadable Notebook NotJSONError
【8月更文挑战第2天】文章提供了解决GitHub下载的Jupyter Notebook文件打开时报错的方法,包括端口冲突和文件加载错误。
450 0
github下载的.ipynb文件报错unreadable Notebook NotJSONError
|
网络安全 开发工具 git
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
6037 1
【完美解决】Github action报错remote: Write access to repository not granted.
【完美解决】Github action报错remote: Write access to repository not granted.