ssh 连接出现错误: kex_exchange_identification: Connection closed by remote host

这篇具有很好参考价值的文章主要介绍了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上面看了其他人描述的花里胡哨,其实一点用没有,实际上你只要初始化一下你本用户的.ssh文件夹就可以了。

那么怎么初始化?

直接一条命令搞定

rm .ssh -rf

执行完这条命令,然后接着执行ssh 连接主机就可以成功执行了。

ssh 连接出现错误: kex_exchange_identification: Connection closed by remote host,Linux,ssh,运维

原因可能是我们本地的.ssh出现了问题,或者是ssh进行了更新,导致出现的问题,实际上我们只要重新生成一下就可以了。文章来源地址https://www.toymoban.com/news/detail-703167.html

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

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

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

相关文章

  • 【解决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)
  • SSH远程连接报错:kex_exchange_identification: Connection closed by remote host

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

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

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

    2024年01月17日
    浏览(36)
  • github上传文件遇到错误:kex_exchange_identification: read: Software caused connection abort banner exchange:

    github上传文件时,连接不上ssh,输入ssh -T git@github.com,检查连接,出现以下错误: kex_exchange_identification: read: Software caused connection abort banner exchange: Connection to 20.205.243.166 port 22: Software caused connection abort 其中20.205.243.166是github的地址,22号端口是和你连接的端口。这段话意思是

    2024年02月10日
    浏览(36)
  • 解决ssh:connect to host github.com port 22: Connection timed out与kex_exchange_identification

    无法进行clone项目和其他Git操作。执行检测连接命令 ssh -T git@github,com 报错 ssh:connect to host github.com port 22: Connection timed out 即:连接22端口超时 涉及到的文件 : C:UsersJIACHENGER.sshconfig C:UsersJIACHENGER.sshgithub_id_rsa C:UsersJIACHENGER.sshgithub_id_rsa.pub C:UsersJIACHENGER.sshknown_hosts 生成

    2024年02月06日
    浏览(34)
  • 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)
  • 【日常踩坑】解决 kex_exchange_identification 报错

    最近在使用 git 时,发现 git pull 时经常会出现下面的报错 kex_exchange_identification: Connection closed by remote host ,导致无法正常拉取代码 和之前的 解决 pip 安装第三方包时因 SSL 报错 原因类似,都是因为网络代理导致的 主要是代理服务商为了安全考虑,避免被人当作跳板,会主动

    2024年01月22日
    浏览(45)
  • kex_exchange_identification: Connection closed by remote host

    登录远程服务器时,出现了这个问题,费了好几个小时定位,最后发现是开了代理。 两个解决方案: 把代理关掉 在代理规则里过滤掉服务器的ip

    2024年02月14日
    浏览(29)
  • 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)
  • github: kex_exchange_identification: Connection closed by remote host

    参照下边文档 https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port 进入config文件 添加下述配置 结果如下图 运行如下代码进行验证 如果都没问题,重新git pull自己代码仓库里的代码,发现可以正常拉取,问题至此解决

    2024年02月05日
    浏览(31)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包