精华内容
下载资源
问答
  • ssh 远程登陆异常SSH_EXCHANGE_IDENTIFICATION及解决过程

    ssh 远程登陆异常SSH_EXCHANGE_IDENTIFICATION及解决过程

    参考文章:

    (1)ssh 远程登陆异常SSH_EXCHANGE_IDENTIFICATION及解决过程

    (2)https://www.cnblogs.com/lovearpu/p/11118557.html


    备忘一下。


    展开全文
  • 问题:使用MobaXterm登录服务器,提示ssh_exchange_identification: read: Connection reset by peer [lanxum.LAPTOP-OMIO6B77] ➤ ssh root@10.10.2.230 ssh_exchange_identification: read: Connection reset by...

    问题:使用MobaXterm 登录服务器,提示ssh_exchange_identification: read: Connection reset by peer

    [lanxum.LAPTOP-OMIO6B77] ➤ ssh root@10.10.2.230
    ssh_exchange_identification: read: Connection reset by peer

    解决:

    使用ssh -v查看详细登录过程。

    [lanxum.LAPTOP-OMIO6B77] ➤ ssh -v -T 10.10.2.230
    OpenSSH_7.5p1, OpenSSL 1.0.2o  27 Mar 2018
    debug1: Reading configuration data /etc/ssh_config
    debug1: /etc/ssh_config line 13: Deprecated option "useroaming"
    debug2: resolving "10.10.2.230" port 22
    debug2: ssh_connect_direct: needpriv 0
    debug1: Connecting to 10.10.2.230 [10.10.2.230] port 22.
    debug1: Connection established.
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.5
    ssh_exchange_identification: read: Connection reset by peer

    通过搜索分析可以发现,很多这样的问题,原因也是五花八门,主要都是集中在一下几个方面:

    1、网络问题,ip被加入到限制列表。

    2、目录文件夹权限有问题。

    等等还有其他未发现的原因。

    解决方法也是很多,主要就是一下几种。

    1、如果是IP被限制问题,可以直接联系网管了。

            如果自己手动修改的话,可以直接修改 /etc/hosts.allow,追加sshd: ALL(允许所有ip主机均能连接本机)或根据需要进行授权,然后重启service sshd restart即可具体参考相关规则,当然这有个前提你能进入主机内。网上帖子N多,不再赘述。

    2、/var 目录权限过大,导致ssh失败。

            修改该目录权限为755。具体参考博客由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题

    3、其他

            我还发现一个也是该问题的分析,特此留作参考:

    SSH to AWS EC2 issue - key_load_public: No such file or directory [closed]

            我也碰到了同样的问题,上面各种解决方案我也曾一一试过,但是依然不起作用。造成这个问题的原因是什么,至今未能查找出来。只能留一个记录,等待以后再碰到此问题,再补充原因和解决方法了。

    展开全文
  • 电脑连手机热点时可正常ssh登录远程服务器 但是连接图书馆公共WiFi时ssh连接报错ssh_exchange_identification: read: Connection reset 如下 试过修改hosts.allow,无效 服务器sshd运行状态如下
  • ssh_exchange_identification:

    2016-01-05 11:43:27
    ssh_exchange_identification: Connection closed by remote hostssh_exchange_identification: Connection closed by remote host 我的ssh_conf文件是 Host * ForwardAgent no ForwardX11 no ForwardX11Trusted...
  • linux修改了/etc/hosts.allow和/etc/hosts.deny文件,ssh远程时ssh_exchange_identification: read: Connection reset by peer 1.做了过滤但是 测试连接其他服务器是出现这种情况 2.如何解决这种情况 3.请各位指点...
  • ssh问题:ssh_exchange_identification: Connection closed by remote host... 刚刚一个朋友告诉我SSH连接不上服务器了,重启电脑也不管用.我仔细看了一下,老报如下错误: ssh_exchange_identification: ...

    ssh问题:ssh_exchange_identification: Connection closed by remote host...

    刚刚一个朋友告诉我SSH连接不上服务器了,重启电脑也不管用.我仔细看了一下,老报如下错误:

    ssh_exchange_identification: Connection closed by remote host

    the connection to the remote host was lost . this usually means that you network connection went down or that the remote host was rebooted most network outages are short. and thus trying again may work

    (1)  最简单的解决方法就是让 /etc/hosts.allow/etc/hosts.deny里面的所有信息都不生效,全部注销掉, 重启SSH服务就可以了.

    但是,有时候在你修改后不久,仍然会出现/etc/hosts.deny自动修改,让你还是登录不了,此时需要检查denyhosts服务。

     在redhat系列的版本中,有一个denyhosts服务,会自动覆盖/etc/hosts.deny文件,在确认要登录的机器没有问题时,可以简单做如下处理:

    /etc/init.d/denyhosts stop

    修改/etc/hosts.allow文件,加入 sshd:ALL。

    (2)  但是还有一种情况,就是客户端连接数过多时,也会报这个错误。缺省情况下,SSH终端连接数最大为10个。在这种情况下,需要改SSH的配置文件,

          解决方案:

    1)        修改/etc/ssh/sshd_config中#MaxStartups 10,将其改为MaxStartups 1000

    2)        重启SSH服务,/etc/init.d/ssh restart

    转载于:https://www.cnblogs.com/gaobo543013306/p/9382867.html

    展开全文
  • 解决ssh_exchange_identification: read: Connection reset by peer办法:chmod 0600 /etc/ssh/ssh_host_rsa_key 办法:chmod 0600 /etc/ssh/ssh_host_rsa_key etc目录删除后的恢复的过程中ssh连不上了 OpenSSH_7.1...

    解决ssh_exchange_identification: read: Connection reset by peer

    办法:chmod 0600 /etc/ssh/ssh_host_rsa_key

    etc目录删除后的恢复的过程中ssh连不上了

    OpenSSH_7.1p2, OpenSSL 1.0.2e 3 Dec 2015
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Connecting to 192.168.3.5 [192.168.3.5] port 22.
    debug1: Connection established.
    debug1: permanently_set_uid: 0/0
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_rsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /root/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.1
    ssh_exchange_identification: read: Connection reset by peer

    展开全文
  • ssh_exchange_identification: Connection closed by remote host 导致这个问题的原因有很多,笔者是因为在ssh中设置了代理,这个可以作为阅读者排查问题的一个点。 首先登录的时候,使用下面的命令 ssh -v -l pi ...
  • ssh_exchange_identification: Connection closed by remote host 解决方法
  • 在EVE-NG上新建Juniper的vMX后,...ssh_exchange_identification: Connection closed by remote host 需要在vMX重新生产key root@vMX-102> start shell user root root@vMX-102:~ # ssh-keygen -t ecdsa -b 384
  • 在scp中,发现ssh_exchange_identification: read: Connection reset by peer 用ssh登录一下看看。 OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_...
  • ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. 分析 上面提示的意思是git在pull代码期间连接突然被远程中断,我手动在机器上执行git pull代码...
  • 服务器改了密码,试过密码多次后出现...ssh连接主机时,出现如下报错如何解决? 在客户端连接服务端: [root@foundation66 ~]# ssh root@172.25.254.166 ssh_exchange_identification: read: Connection reset by peer
  • ssh_exchange_identification: Connection closed by remote host 我用的阿里云,只能登陆阿里云,在控制台用网页连接服务器~~ 排错: 1、查看sshd的状态, service sshd status, 感觉不太对劲,重启一下,起不...
  • Host webA HostName 10.10.2.100 Port 36000 User root LocalForward 36000 127.0.0.1:36000 这样转发是没有问题的,但想将 ...就会出现“ssh_exchange_identification: read: Connection reset by peer”, ...
  • ssh_exchange_identification: read: Connection reset by peer 使用-v选项查看详细信息 ## -v表示查看连接详细信息 ssh -v root@172.25.254.160 解决方案:在服务端更改配置文件 vi /etc/hosts.allow ##########...
  • ssh 错误: ssh_exchange_identification

    千次阅读 2012-04-05 21:01:53
    将系统 /run/sshd 目录的权限设置为 775,即同组用户可写, 会导致ssh连接出错 -> ssh 错误: ssh_exchange_identification: Connection closed by remote host
  • ssh_exchange_identification: read: Connection reset by peer 可以通过ssh -v查看连接时详情 OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading configuration data /etc/ssh/ssh_config de...
  • ssh_exchange_identification: read: Connection reset by peer [root@test2 ~]# ssh root@192.168.2.128 ssh_exchange_identification: read: Connection reset by peer 报错分析:  -v:表示查看连接的详细...
  • ssh_exchange_identification: Connection closed by remote host 错误 今天连接重庆的主机的时候,提示这个,翻网上的说明都说是连接数超过最大值了。 然而我的并不是这个问题。 ssh 添加 -v 参数再请求会输出请求...
  • SSH 登录问题:ssh_exchange_identification: read: Connection reset by peer 原因 估计是被ip被服务器拉黑 解决思路 放开所有ip访问 解决步骤分两步 将sshd:ALL添加到/etc/hosts.allow vim /etc/...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,901
精华内容 760
关键字:

ssh_exchange_identification