CentOS7.5系统SSH 用户名@IP回车无反应

######SSH 用户名@IP回车无反应

[eproot@qfgwxmyptcsfwq1 ~]$ ssh -vvv root@10.8.90.191
          OpenSSH_8.6p1, OpenSSL 1.1.1k  25 Mar 2021
          debug1: Reading configuration data /etc/ssh/ssh_config
          debug2: resolve_canonicalize: hostname 10.8.90.191 is address
          debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/eproot/.ssh/known_hosts'
          debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/eproot/.ssh/known_hosts2'
          debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
          debug3: ssh_connect_direct: entering
          debug1: Connecting to 10.8.90.191 [10.8.90.191] port 22.
          debug3: set_sock_tos: set socket 3 IP_TOS 0x48
          debug1: Connection established.
          debug1: identity file /home/eproot/.ssh/id_rsa type -1
          debug1: identity file /home/eproot/.ssh/id_rsa-cert type -1
          debug1: identity file /home/eproot/.ssh/id_dsa type -1
          debug1: identity file /home/eproot/.ssh/id_dsa-cert type -1
          debug1: identity file /home/eproot/.ssh/id_ecdsa type -1
          debug1: identity file /home/eproot/.ssh/id_ecdsa-cert type -1
          debug1: identity file /home/eproot/.ssh/id_ecdsa_sk type -1
          debug1: identity file /home/eproot/.ssh/id_ecdsa_sk-cert type -1
          debug1: identity file /home/eproot/.ssh/id_ed25519 type -1
          debug1: identity file /home/eproot/.ssh/id_ed25519-cert type -1
          debug1: identity file /home/eproot/.ssh/id_ed25519_sk type -1
          debug1: identity file /home/eproot/.ssh/id_ed25519_sk-cert type -1
          debug1: identity file /home/eproot/.ssh/id_xmss type -1
          debug1: identity file /home/eproot/.ssh/id_xmss-cert type -1
          debug1: Local version string SSH-2.0-OpenSSH_8.6
运行结果及报错内容
能ping、telnet 22端口能通,Windows电脑能SSH进入目标服务器
求解答

意思是,在win中,可以使用相关工具 SSH进入到目标服务器,然后在现在机器上,ssh 过去没回应?


从输出中,我看到一个问题,这用户中的 .ssh/known_hosts 文件存在2个,一般只存在一个,你可以尝试将2个文件都删除,再重新ssh 获取指纹登记时,选择yes,

这样操作试下

确实网络策略有问题,之前与网络管理员对接时说只有两道防火墙,我们也亲眼看访问22端口是放行的,故以为是ssh的问题。但是没想到经排查后,网络管理员有说还有一道IPS的防火墙,登录上去看后才发现22端口在这里被阻断了,放行后即可正常连接。大家以后ssh -v debug如果到这里进行不下去时,可以试试让网络管理员检查一遍策略看一下


```Linux
[root@qfgwxmyptcsfwq1 ~]$ ssh -v 10.8.90.191
OpenSSH_8.6p1, OpenSSL 1.1.1k  25 Mar 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 10.8.90.191 [10.8.90.191] port 22.
debug1: Connection established.
debug1: identity file /home/root/.ssh/id_rsa type -1
debug1: identity file /home/root/.ssh/id_rsa-cert type -1
debug1: identity file /home/root/.ssh/id_dsa type -1
debug1: identity file /home/root/.ssh/id_dsa-cert type -1
debug1: identity file /home/root/.ssh/id_ecdsa type -1
debug1: identity file /home/root/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/root/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/root/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/root/.ssh/id_ed25519 type -1
debug1: identity file /home/root/.ssh/id_ed25519-cert type -1
debug1: identity file /home/root/.ssh/id_ed25519_sk type -1
debug1: identity file /home/root/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/root/.ssh/id_xmss type -1
debug1: identity file /home/root/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6