【git问题处理】SSL routines:ssl3_get_record:wrong version number问题解决小记

  • 🐚作者简介:花神庙码农(专注于Linux、WLAN、TCP/IP、Python等技术方向)
  • 🐳博客主页:花神庙码农 ,地址:https://blog.csdn.net/qxhgd
  • 🌐系列专栏:GitHub开源
  • 📰如觉得博主文章写的不错或对你有所帮助的话,还望大家三连支持一下呀!!! 👉关注✨、点赞👍、收藏📂、评论。
  • 如需转载请参考转载须知!!

问题描述

git clone --branch master https://git.openwrt.org/openwrt/openwrt.git
正克隆到 'openwrt'...
fatal: 无法访问 'https://git.openwrt.org/openwrt/openwrt.git/':error:1408F10B:SSL routines:ssl3_get_record:wrong version number

问题分析

  • 笔者电脑是通过系统代理上外网;
  • 以往git clone访问的都是公司内网的库,因此未设置git的代理。

问题解决

  • 配一个代理就可以解决问题:
git config --global https.proxy http://proxy.xxx.com.cn:80
  • http://proxy.xxx.com.cn:80中的http://可省略。

命令汇总

全局代理——所有git命令都走此代理

  • 配置http、https代理
git config --global http.proxy http://your-proxy-server:port
git config --global https.proxy https://your-proxy-server:port
  • 配置sock5代理
git config --global http.proxy socks5://your-proxy-server:port
git config --global https.proxy socks5://your-proxy-server:port
  • 查看所代理:
git config --global --get http.proxy
git config --global --get https.proxy
git config --list            #查看当前用户所有配置
git config --global --list  #查看当前用户的global配置
  • 也可在查看vim ~/.gitconfig文件:
[http]
    proxy = http://your-proxy-server:port
[https]
    proxy = http://your-proxy-server:port
  • 取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy

全局代理——针对特定域名设置代理

git config --global http.https://github.com.proxy http://your-proxy-server:port
git config --global https.https://github.com.proxy http://your-proxy-server:port

局部代理——仅针对某仓库设置代理

  • 设置代理(在github clone 仓库内执行)
git config --local http.proxy xxx.x.x.x:xxxx
git config --local https.proxy xxx.x.x.x:xxxx
  • 查询是否使用代理:
git config --local http.proxy
git config --local https.proxy
  • 查看当前仓库配置信息
git config --local --list
  • 也可在查看vim .git/config文件:
[http]
    proxy = http://your-proxy-server:port
[https]
    proxy = http://your-proxy-server:port
  • 取消局部代理:
git config --local --unset http.proxy

如本文对你有些许帮助,欢迎大佬加关注、评论、点赞,有关必回关

OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054是一个与网络连接相关的错误。这个错误通常出现在使用Git进行提交或克隆操作时。可以根据以下几种方法来解决这个问题: 1. 检查网络连接:首先,确保你的网络连接正常并且稳定。这个错误通常是由于网络过慢或不稳定导致的。可以尝试使用不同的网络连接,者连接到更稳定的网络上再次尝试操作。 2. 更换网络环境:如果你使用的是公共Wi-Fi或者公司的网络,有时候这些网络对Git操作进行了限制。尝试切换到一个不同的网络环境,例如使用个人热点或者使用家庭网络来进行操作。 3. 使用代理:如果你在使用Git时遇到了网络问题,可以尝试配置代理。可以使用`git config`命令来设置代理,具体的设置方法可以参考Git的官方文档。 4. 手动下载:如果以上方法都没有解决问题,你可以尝试手动下载所需的文件。在Git操作中遇到网络问题时,你可以手动从源码管理系统(例如GitHub)下载所需的文件,然后将其放置在正确的位置,再进行后续的操作。 总结起来,OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054错误通常是由于网络连接问题引起的。通过检查网络连接、更换网络环境、使用代理或者手动下载文件等方法,可以解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [提交Git时报错:OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054](https://blog.csdn.net/qq_42203909/article/details/123882309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [安装vagrant报错OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54](https://download.csdn.net/download/weixin_38627213/14043306)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [ERROR: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054解决方法](https://blog.csdn.net/JISOOLUO/article/details/103625488)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

花神庙码农

你的鼓励是我码字的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值