github: kex_exchange_identification: Connection closed by remote host

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

问题描述

(base)test git:(dev) git pull
kex_exchange_identification: Connection closed by remote host
Connection closed by 192.30.255.113 port 22
致命错误:无法读取远程仓库。

解决方案

参照下边文档
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port文章来源地址https://www.toymoban.com/news/detail-753032.html

  • 进入config文件
(base) ➜  .ssh vi ~/.ssh/config
  • 添加下述配置
Host github.com
    Hostname ssh.github.com
    Port 443
    User git
  • 结果如下图
    github: kex_exchange_identification: Connection closed by remote host,Git,github,git
  • 运行如下代码进行验证
$ ssh -T git@github.com
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.
  • 如果都没问题,重新git pull自己代码仓库里的代码,发现可以正常拉取,问题至此解决

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

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

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

相关文章

  • git报错——kex_exchange_identification: read: Software caused connection abort banner exchange......

    1、问题: 在IDE推送的时候,出现了如下的问题,特此记录一下: kex_exchange_identification: read: Software caused connection abort banner exchange: Connection to 175.24.250.178 port 22: Software caused connection abort fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository

    2024年02月11日
    浏览(30)
  • ssh 连接出现错误: kex_exchange_identification: Connection closed by remote host

    错误如下表示: windstorm@LocalHost-Server ~ ssh webase-front@192.168.122.22 Couldn\\\'t get a file descriptor referring to the console. fish: Unknown command: nc fish: exec nc -X connect -x 127.0.0.1:15732 192.168.122.22 22      ^^ kex_exchange_identification: Connection closed by remote host 当出现这种错误的时候,不要慌,我在csdn上面

    2024年02月09日
    浏览(29)
  • SSH远程连接报错:kex_exchange_identification: Connection closed by remote host

    kex_exchange_identification: Connection closed by remote host 删除known_hosts,重启终端即可

    2024年02月11日
    浏览(33)
  • Linux(ubuntu、centos): kex_exchange_identification: Connection closed by remote host

    今天我在连接我的Ubuntu服务器的时候,发现连不上,报下面这个错误。 进一步研究发现报错: 当你在尝试使用 SSH 连接到一个 Ubuntu 服务器时遇到 \\\"kex_exchange_identification: Connection closed by remote host\\\" 错误,这通常意味着服务器由于某种原因拒绝了你的连接请求。 服务器的 SSH 守

    2024年02月06日
    浏览(35)
  • ssh远程登录报错:kex_exchange_identification: Connection closed by remote host

    系统: MacOS Catalina 10.15.7 报错信息: 终端登录远程 服务器 时报错: 复制 然而服务商的一键登录或VNC登录正常。 首先使用以下命令debug登录过程,以便定位问题: 复制 如果你从此时返回的信息中能够发现大量的提示都指向: 复制 基本上能够确定问题出现在本机的配置上。

    2024年01月17日
    浏览(36)
  • SSH远程连接时报错kex_exchange_identification: Connection closed by remote host

    在 SSH 服务器上进行远程内容时,会经常出现 kex_exchange_identification: Connection closed by remote host 内容,主要是由于远程计算机登录节点的数量限制问题。 在 SSH 服务器上,最大并发登录会话数是由 ‘MaxSessions’ 参数来控制的。 ‘MaxSessions’ 参数决定了 ssh 服务器最多会话数限制

    2024年02月16日
    浏览(31)
  • 【解决vscode连ssh问题:kex_exchange_identification: read: Connection reset】ssh无法重启

    实验室的服务器连不上了,试了很多种方法,包括 删除known_hosts 和卸载重装本地的vscode和ssh,但还是连不上,基本上可以确定是服务器方面的问题。vscod最开始是弹出以下报错 网上很多解决方法我也试过了,包括 重新生成密钥 ssh-keygen 和 修改/etc/hosts.deny或/etc/hosts.allow ,但

    2024年02月05日
    浏览(35)
  • 【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from

    报错代码 成功效果图 必要的解决方法 如果平时没有什么特别操作的话,换个网络就可以了,换个无线或者切换手机热点,实在不行等下再弄。不用去搞这个那个的配置。 可能有用的解决方法 可能需要把代理关了,没开代理的忽略

    2024年02月11日
    浏览(31)
  • ssh报错:kex_exchange_identification

    今年回校之后发现ssh登录服务器会概率性出现 kex_exchange_identification 的错误。根据博文可知是ssh连接数量过多。进而猜测有肉鸡服务器尝试进行ssh爆破。 通过命令 cat /var/log/auth.log |more 可以发现大量校园内网IP正在撞库爆破。 按照博文的方案将允许的sshd连接数改为2000发现虽然

    2024年02月13日
    浏览(25)
  • Git报错Kex_exchange_identification

    问题: 本地项目push到github失败 Push failed Kex_exchange_identification: Connection closed by remote hostConnection closed by 20.205.243.166 port 22 Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists. 同样地,从github中clone、pull、fetch也报上述错误 解决方法 一般情况

    2024年01月25日
    浏览(28)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包