当前位置:网站首页>Case summary of SSH service suddenly unable to connect
Case summary of SSH service suddenly unable to connect
2022-07-24 12:38:00 【Brother Xing plays with the clouds】
a Oracle database The server (Linux Version is Oracle Linux Server release 5.7) This afternoon, there was a brief ssh It's not connected ,ssh When you can't connect ,ping The server normal , Use psping Detection port 22 It's normal ( Only return 5 A package , It didn't last ping), Use SQL Developer You can log in to the database for any operation , in addition , adopt DPA The tool found this The server Of CPU And other resources consumption is very low ( After finding that the database services are normal , I went out to eat ), Come back when , Feedback from colleagues ssh It's normal , Missed a good time for diagnosis , During this period, another colleague also did some examinations :
The test found ping normal , however psping testing 8088 The network delay of port discovery is very long , There's even a timeout . He made a screenshot comparison , As shown below .
ping It's a network layer protocol , It just shows that the network is 3 The layer is connected ;tomcat It's the application layer protocol
After dinner , Find out ssh You can log in normally The server , The inspection found that this process has been running for more than 200 days , So in other words sshd The service didn't die ,sshd The service has not been restarted .
Use ps -ef | grep sshd find sshd The process of , Execute the following command
[[email protected] ~]# ps -eo pid,lstart,etime | grep 3423 3423 Sun Feb 18 13:56:11 2018 234-09:01:48
Check log information , I found several in it Did not receive identification string from xxx Information about ( Some information has been desensitized ).
[[email protected] log]# tail -100 /var/log/secure Oct 8 14:50:48 mylnx01 sshd[4341]: pam_unix(sshd:session): session opened for user oracle by (uid=0) Oct 8 14:50:49 mylnx01 sshd[4341]: pam_unix(sshd:session): session closed for user oracle Oct 10 12:26:41 mylnx01 sshd[742]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[743]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[790]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[789]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[745]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[744]: Did not receive identification string from 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[1007]: Connection closed by 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[1006]: Connection closed by 192.168.xxx.xxx Oct 10 12:26:41 mylnx01 sshd[746]: Did not receive identification string from 192.168.xxx.xxx
I searched the relevant information about this error , Generally, errors occur because :
This one below means ssh server waited and did not receive what it needed in a timely fashion. This is typically due to connectivity issues. In an ssh connection, the server first provides its identification string, then waits for the client to then provide its identification string. If there is a loss in connection, or the client just bails, this is what you will see in the logs. If someone uses telnet or netcat to fetch your ssh banner, or other various scans, the logs on the server side will show this as well.
This error message means ssh The service didn't receive what it needed in time , And wait . Usually caused by connection problems . stay ssh Connecting , The server First, provide its identification string , Then wait for the client to provide its identification string . If the connection is lost , Or the client just exited , What you see in the log will appear .
Although it is suspected that it is a routing problem , But individuals lack detailed evidence of network monitoring , But there is also some supporting evidence : Recently, there have been a lot of network problems in the two places , The day before yesterday, I also found that network packet switching was serious , The network administrator asked the supplier for feedback , But it's not clear what happened later . Because I don't deal with this matter .
边栏推荐
猜你喜欢

Wechat applet - drawing dashboard
让一套代码完美适配各种屏幕

Behind the rapid growth, Huawei cloud Wulanchabu data center is the green way

如何最快找出复杂代码运行时的函数调用流程

Basic SQL server operation problems - only when lists are used and identity_ Only when insert is on can the display value be set for the identification column in the table

Wechat official account development: Material Management (temporary and permanent)

Okaleido tiger NFT即将登录Binance NFT平台

Use abp Zero builds a third-party login module (III): web side development
![[rust] Why do I suggest you learn rust | a preliminary study of rust](/img/33/a5e7d22e87502fa8582920cb34de9f.png)
[rust] Why do I suggest you learn rust | a preliminary study of rust

基于Kubernetes v1.24.0的集群搭建(三)
随机推荐
Examples of map search
Leetcode-81. search rotation sort array II (binary search returns true/false)
[rust] Why do I suggest you learn rust | a preliminary study of rust
Taishan Office Technology Lecture: layout difficulties of paragraph borders
生信识图 之 点图基础
leetcode-81. 搜索旋转排序数组 II(二分查找返回true/false)
Snowflake algorithm (PHP)
Implementing deep learning framework from zero -- further exploration of the implementation of multilayer bidirectional RNN
Buckle exercise - 35 combination sum II
Buckle practice - 25 non overlapping intervals
thinkphp 实现数据库备份
Installation and deployment of ansible
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
Support liuhaiping
QT notes - EventFilter event filter
向勒索病毒说不,是时候重塑数据保护策略
How to render millions of 2D objects smoothly with webgpu?
Force deduction exercise - 29 complete the array as required
QWaitCondition 的正确使用方法
ThinkPHP realizes database backup