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"
相关推荐
无限进步_10 小时前
【C++】大数相加算法详解:从字符串加法到内存布局的思考
开发语言·c++·windows·git·算法·github·visual studio
烟锁池塘柳014 小时前
GitHub 强制回退版本并覆盖远程仓库
git·github
Maggie_ssss_supp17 小时前
Linux-MySQL主从复制
github
向量引擎18 小时前
[硬核架构] 2026 企业级 AI 网关落地指南:从“连接超时”到“秒级响应”的架构演进(附 Python/Java 源码)
人工智能·python·gpt·ai作画·架构·aigc·api调用
cg501718 小时前
Continue插件实现本地部署一个“cursor”或“github copilot”
github·copilot·curcor
妙娲种子19 小时前
gittee连接github镜像
gitee·github
无限进步_19 小时前
C语言实现贪吃蛇游戏完整教程【最终版】
c语言·开发语言·c++·git·游戏·github·visual studio
CoderJia程序员甲20 小时前
GitHub 热榜项目 - 日榜(2026-01-21)
ai·开源·大模型·github·ai教程
亮子AI20 小时前
【Github】如何取消 issue 自动加入 project 的功能?
github·issue
chipsense20 小时前
Ubuntu服务器上为Apache网站安装部署SSL证书详细步骤
linux·ubuntu·ssl