【github】Connection reset by 20.205.243.160 port 443

这篇具有很好参考价值的文章主要介绍了【github】Connection reset by 20.205.243.160 port 443。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

被github正确的ip和443端口拒绝

  • 经常出现:
zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ git push origin main
Connection reset by 20.205.243.160 port 443
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

检查: ssh -vT git@github.com

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ git push origin main
Connection reset by 20.205.243.160 port 443
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ ssh -vT git@github.com
OpenSSH_9.1p1, OpenSSL 1.1.1s  1 Nov 2022
debug1: Reading configuration data /c/Users/zhangbin/.ssh/config
debug1: /c/Users/zhangbin/.ssh/config line 3: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to ssh.github.com [20.205.243.160] port 443.
debug1: Connection established.
debug1: identity file /c/Users/zhangbin/.ssh/id_rsa type 0
debug1: identity file /c/Users/zhangbin/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_xmss type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_xmss-cert type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_dsa type -1
debug1: identity file /c/Users/zhangbin/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.1
debug1: Remote protocol version 2.0, remote software version babeld-4b034cc8
debug1: compat_banner: no match: babeld-4b034cc8
debug1: Authenticating to ssh.github.com:443 as 'git'
debug1: load_hostkeys: fopen /c/Users/zhangbin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection reset by 20.205.243.160 port 443

看起来dns是对的

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$  nslookup github.com 8.8.8.8
Non-authoritative answer:
Server:  dns.google
Address:  8.8.8.8

Name:    github.com
Address:  20.205.243.166


zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ nslookup ssh.github.com 8.8.8.8
Non-authoritative answer:
Server:  dns.google
Address:  8.8.8.8

Name:    ssh.github.com
Address:  20.205.243.160


全局proxy不行

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ export https_proxy=http://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export all_proxy=socks5://127.0.0.1:7891


zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ git push -u origin main
Connection reset by 20.205.243.160 port 443
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

加了git的proxy 不行

$ git config --global http.proxy "socks5://127.0.0.1:7891"
git config --global https.proxy "socks5://127.0.0.1:7891"

加了nc 的没权限

  • nc sock5
$ cat ~/.ssh/config
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Host github.com
Hostname ssh.github.com
Port 443
User git
#socks5
#ProxyCommand nc -X 5 -x 127.0.0.1:7891 %h %p

zhangbin@LAPTOP-DFV9CMRA MINGW64 /g/CDN/net/libuv-dev/net_uv_new-kcp-imui-gl (main)
$ git push origin main
/usr/bin/bash: line 1: /g/ISOFT/netcat-win32-1.12/nc: Permission denied
/usr/bin/bash: line 1: /g/ISOFT/netcat-win32-1.12/nc: No error
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

实测,这个可以

  • connect proxy
Host github.com
    User git
    ProxyCommand connect -H 127.0.0.1:7890 %h %p

文章来源地址https://www.toymoban.com/news/detail-777781.html

到了这里,关于【github】Connection reset by 20.205.243.160 port 443的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 使用npm或yarn安装东西时报错connect ETIMEDOUT 20.205.243.166:443如何解决

    由于github国内网络连接被限制,所以最好使用镜像解决,修改npm和yarn的源地址可以更快 修改npm源地址解决问题 以下两种都可以 1.修改为淘宝镜像 2.修改为npmmirror 修改yarn源地址可以更快下载 淘宝镜像安装 如果安装失败,使用npm cache clean清除缓存,再重新安装,使用cnpm -v查

    2024年02月20日
    浏览(52)
  • fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=???

    错误 fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=连接超时 处理 :执行以下命令 然后再重新输入你的克隆命令就完美解决。嘿嘿嘿

    2024年02月03日
    浏览(57)
  • fatal: unable to connect to github.com:github.com[0:20.205.243.166]: errno=Unknown error

    在 bash 执行命令 git clone 时 报 : fatal: unable to connect to github.com:github.com[0: 20.205.243.166]: errno=Unknown error 发生此错误是因为 git 端口受限 ,可以使用以下命令修复 git config --global url.https://github.com/.insteadOf git://github.com/ 修复后,再次执行 git clone

    2024年02月11日
    浏览(47)
  • fatal: unable to connect to github.com:github.com[0: 20.205.243.166]: errno=Unknown error

    查看全局配置:   http.sslverify=false :这个配置意味着禁用了对HTTPS连接进行SSL证书验证。这可能会导致不安全的连接,可以设置为true url.git://github.com/.insteadof=https://github.com/ 和 url.git://github.com.insteadof=https://github.com :这两个配置用于将Git协议(git://)的URL转换为HTTPS协议(h

    2024年02月15日
    浏览(85)
  • fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=Unknown error

    fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=Unknown error 引发上述错误是因为 git 弃用了 git: 协议,所以只需要将 git 中的 git: 协议改成 https: 即可,命令如下:

    2024年02月04日
    浏览(53)
  • 【已解决】OpenSSL SSL_connect: Connection was reset in connection to github.com:443

    OpenSSL SSL_connect: Connection was reset in connection to github.com:443错误解决 git push origin main:main fatal: unable to access ‘https://github.com/Allen9012/OJ.git/’: OpenSSL SSL_connect: Connection was reset in connection to github.com:443 首先多试几次,发现始终出现类似问题,可能就是如下原因 试试看重启+下面的方式

    2024年02月12日
    浏览(46)
  • Git报错fatal unable to connect to github.com: github.com[0: 20.205.243.166]: errno=unknown error的解决方法

    今天创建了新的GitHub项目,进行git clone时报错 fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=unknown error 经查,这个问题是由于Git 协议通常使用端口 9418,但是有些网络环境可能会限制对此端口的访问,或者直接阻止使用 Git 协议。因此,我们需要将git://github.com/替

    2024年02月08日
    浏览(53)
  • 解决Failed to connect to github.com port 443:Connection refused

    如题,在终端执行git clone时提示Failed to connect to github.com port 443:Connection regused错误 解决方案如下: 本地有连接vpn,通过在终端输入以下命令解决: git config --global http.proxy http://127.0.0.1:7890 说明:7890为本地混合配置的端口号

    2024年02月13日
    浏览(68)
  • Failed to connect to github.com port 443: Connection timed out

    使用git clone出现的这个问题,这个问题一般是使用翻墙代理软件引起的 一:取消代理(一般取消后 也不能正常使用git clone,因为没翻墙。。。,网速特好时偶尔也可以) 二:设置正确的代理端口号 随后设置正确的代理端口,如: 然后就可以正常使用了

    2024年01月23日
    浏览(54)
  • 解决 github 报错 Failed to connect to github.com port 443:connection timed out

    你在使用github的时候,是不是会经常出现Failed to connect to github.com port 443:connection timed out报错,这是什么原因造成的呢?我们应该如何解决呢?请继续往下看 这是由于电脑里开启了代理,例如开启了翻墙软件等,就会造成这个原因 执行命令:

    2024年02月11日
    浏览(60)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包