1,报错内容具体如下,昨天还可以用,今天突然不能正常使用了,且咨询相关人员,网络和主机未作任何修改,问题特别奇怪
现象是连接打开后,却又被关闭了,
09:29:14] Connecting...
[09:29:14] Connecting to '10.4.124.236'...
[09:29:14] Connected.
[09:29:14] Version exchange initiated...
[09:29:14] server: SSH-2.0-OpenSSH_4.3
[09:29:14] client: SSH-2.0-nsssh2_4.0.0023 NetSarang Computer, Inc.
[09:29:14] SSH2 is selected.
[09:29:14] Algorithm negotiation initiated...
[09:29:14] key exchange: diffie-hellman-group14-sha1
[09:29:14] host key: ssh-dss
[09:29:14] outgoing encryption: aes128-cbc
[09:29:14] incoming encryption: aes128-cbc
[09:29:14] outgoing mac: hmac-sha1
[09:29:14] incoming mac: hmac-sha1
[09:29:14] outgoing compression: none
[09:29:14] incoming compression: none
[09:29:14] Host authentication initiated...
[09:29:14] Hostkey fingerprint:
[09:29:14] ssh-dsa 1024 d5:0c:cb:fb:15:25:f2:25:a4:98:d8:8c:64:dd:03:b6
[09:29:14] Accepted. Verifying host key...
[09:29:14] Verified.
[09:29:14] User authentication initiated...
[09:29:14] Sent user name 'root'.
[09:29:15] Sent password.
[09:29:15] Access granted.
[09:29:15] Sent X11 forwarding request...
[09:29:15] Succeeded.
[09:29:15] Sent the command line.
[09:29:15] /usr/bin/gnome-session --display $DISPLAY
[09:29:15] Start timer (TIMER_SHUTDOWN, 180).
[09:29:15] An X11 channel (id=1) has opened.
[09:29:15] Stop timer (TIMER_SHUTDOWN).
SESSION_MANAGER=local/dtydb6:/tmp/.ICE-unix/20240
[09:29:15] An X11 channel (id=2) has opened.
[09:29:15] An X11 channel (id=2) has closed.
[09:29:30] Connection closed.
2,折腾了半天,发现配置和网络确实没啥问题,查看22端口连接的时候,发现了少许异常,大量gnome-session的的连接存在,说明图形不存在了,大量进程依然存在。
[root@dtydb6 ~]# netstat -anp |grep 22
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 14016/hpiod
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 14021/python
tcp 225 0 127.0.0.1:57276 127.0.0.1:6010 CLOSE_WAIT 25294/gnome-session
tcp 225 0 127.0.0.1:54278 127.0.0.1:6011 CLOSE_WAIT 25430/gnome-session
tcp 0 0 :::50221 :::* LISTEN 8770/java
tcp 0 0 :::22 :::* LISTEN 14034/sshd
tcp 0 0 ::ffff:127.0.0.1:50010 ::ffff:127.0.0.1:36322 ESTABLISHED 8436/java
tcp 0 0 ::ffff:127.0.0.1:52233 ::ffff:127.0.0.1:50010 ESTABLISHED 141