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"
相关推荐
程序员佳佳4 小时前
【万字硬核】从零构建企业级AI中台:基于Vector Engine整合GPT-5.2、Sora2与Veo3的落地实践指南
人工智能·gpt·chatgpt·ai作画·aigc·api·ai编程
草梅友仁5 小时前
墨梅博客 1.0.0 发布与更新 | 2026 年第 2 周草梅周报
github·ai编程·nuxt.js
周末程序猿6 小时前
杂谈|2025年总结
github
Controller-Inversion7 小时前
cdn协议
计算机网络·github
wzfj1234510 小时前
ssh 远程pc如何不用每次都输入密码
github
行百里er13 小时前
代码跑得慢?让Spring的StopWatch告诉你真相!
java·后端·github
无限进步_17 小时前
【C语言&数据结构】相同的树:深入理解二叉树的结构与值比较
c语言·开发语言·数据结构·c++·算法·github·visual studio
CoderJia程序员甲17 小时前
GitHub 热榜项目 - 日榜(2026-1-10)
ai·开源·大模型·github·ai教程
通义灵码1 天前
Qoder 支持通过 DeepLink 添加 MCP Server
人工智能·github·mcp
观测云1 天前
企业级域名 SSL 证书信息采集与巡检
ssl·观测云