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"
相关推荐
AI2512245 小时前
AI绘画工具技术对比,原理解析与产品能力深度评测
ai作画
m0_694845578 小时前
Oh My Zsh 使用指南:Zsh 终端配置与插件管理教程
服务器·前端·小程序·开源·github
米小虾9 小时前
hackerbot-claw 攻击事件深度解析:AI Agent 时代的安全警钟
github·ai编程
逛逛GitHub10 小时前
AI 搜索利器 MiroThinker 发布新模型!我接入小龙虾,太实用了。
github
happyprince11 小时前
2026年03月18日热门Model/github项目
github
无限进步_12 小时前
深入解析list:一个完整的C++双向链表实现
开发语言·c++·git·链表·github·list·visual studio
AI成长日志12 小时前
【datawhale】hello agents开源课程第1章学习记录:初识智能体
学习·开源·github
爆打维c12 小时前
Github配置SSH Key(新手友好版)
ssh·github
老虎062714 小时前
Netty[ NIO 核心速成 ] ---- NIO三大组件(Channel & Buffer&selector)
java·github·nio
屑曦晨14 小时前
创建签名密钥库和配置CICD签名
github