fatal: unable to access ‘***‘: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0解决方案

本文收录于《AI绘画从入门到精通》专栏,专栏总目录:点这里

大家好,我是水滴~~

本文主要介绍在从 GitHub 上克隆 stable-diffusion-webui 项目时出现的 fatal: unable to access 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0问题的解决方案,希望能对你有所帮助。

文章目录


问题描述

今天在一个新的电脑上安装了 Git 和 Python 后,准备克隆 stable-diffusion-webui 项目,执行 git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git 后,出现了下面错误:

复制代码
Cloning into 'stable-diffusion-webui'...
fatal: unable to access 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0

解决方案

这是因为 Git 默认开启了 SSL 验证,我们关闭就好了,下面是关闭 SSL 验证的命令:

shell 复制代码
git config --global http.sslVerify "false"
git config --global https.sslVerify "false"

再次执行克隆命令,即可正常下载了:

常用命令

查看全局配置

shell 复制代码
git config --global -l

关闭 SSL 验证

shell 复制代码
git config --global http.sslVerify "false"
git config --global https.sslVerify "false"

启用 SSL 验证

shell 复制代码
git config --global http.sslVerify "true"
git config --global https.sslVerify "true"
相关推荐
fthux4 小时前
“装闭”,让装修套路“装”不下去
人工智能·ai·开源·github·open source
用户84913717547167 小时前
想做护眼工具却脑子一片空白?我用 OpenSpec 把模糊想法聊成了 v0.1
github·vibecoding
wangruofeng8 小时前
git-filter-repo 把 .git 从 112MB 砍到 1.4MB,但漏推 tag 让 clone 又胖回来
github·devops
峰向AI8 小时前
Block 放出大招!Buzz:一个中继统一代码、聊天、CI 全流程
github
dong_junshuai9 小时前
每天一个开源项目#47 4.4K Stars 的 LikeC4:让架构图随代码进化
github
DisonTangor9 小时前
【微软开源】Mage-Flow 深度解读:微软4B参数图像生成与编辑模型,单卡A100仅需0.59秒
人工智能·microsoft·ai作画·开源·aigc
独立开阀者_FwtCoder11 小时前
最近做了一个健身小程序:智形健身助手,健身的佬们来提点意见
前端·javascript·github
Geek-Chow13 小时前
ALB SSL policy conflict (AWS Load Balancer Controller)
网络协议·ssl·aws
夕夕木各15 小时前
从第一个 PR 到 Vite 官方中文文档维护者
github·vite
隔窗听雨眠17 小时前
GitHub Actions自动化运维实战:从零构建一体化CI/CD流水线
运维·自动化·github