Xmanager 连接多台linux服务器时发现,其中的一台连不上 打开回复的信息窗口
[13:37:10] Connecting to '192.168.0.251'...
[13:37:10] Connected.
[13:37:11] Version exchange initiated...
[13:37:11] server: SSH-1.99-OpenSSH_3.9p1
[13:37:11] client: SSH-2.0-libssh_1.2.1697 NetSarang Computer, Inc.
[13:37:11] SSH2 is selected.
[13:37:11] Algorithm negotiation initiated...
[13:37:11] key exchange: diffie-hellman-group1-sha1
[13:37:11] host key: ssh-dss
[13:37:11] outgoing encryption: aes128-cbc
[13:37:11] incoming encryption: aes128-cbc
[13:37:11] outgoing mac: hmac-sha1
[13:37:11] incoming mac: hmac-sha1
[13:37:11] outgoing compression: none
[13:37:11] incoming compression: none
[13:37:11] Host authentication initiated...
[13:37:11] Hostkey fingerprint:
[13:37:11] ssh-dsa 1024 96:09:f3:84:7a:65:07:22:f6:ad:9a:a8:84:d1:96:92
[13:37:11] Accepted. Verifying host key...
[13:37:11] Verified.
[13:37:11] User authentication initiated...
[13:37:11] Sent user name 'root'.
[13:37:12] Sent password.
[13:37:13] Access granted.
[13:37:13] Sent X11 forwarding request...
[13:37:13] Succeeded.
[13:37:13] Sent the command line.
[13:37:13] /usr/X11R6/bin/xterm -ls -display $DISPLAY
[13:37:13] Start timer (TIMER_SHUTDOWN, 180).
_X11TransSocketINETConnect() can't get address for localhost:6011: Name or service not known
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
/usr/X11R6/bin/xterm Xt error: Can't open display: %s
[13:40:13] Stop timer (TIMER_SHUTDOWN).
[13:40:13] Connection closed.
解决方法:
vi /etc/hosts
加入下面一行
127.0.0.1 localhost.localdomain localhost
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12548713/viewspace-198174/ ,如需转载,请注明出处,否则将追究法律责任。