使用xmanger 3连接

错误如下:

---------------------------
Xrcmd
---------------------------
The server sent a disconnect packet.
Received ieof for nonexistent channel 0. (code: 2)
---------------------------
OK  
---------------------------
[10:34:11] Sent password.
[10:34:11] Access granted.
[10:34:11] Sent X11 forwarding request...
[10:34:11] Succeeded.
[10:34:11] Sent the command line.
[10:34:11] /usr/X11R6/bin/xterm -ls -display $DISPLAY
[10:34:25] Start timer (TIMER_SHUTDOWN, 180).
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known
/usr/X11R6/bin/xterm Xt error: Can't open display: localhost:10.0

 

 

解决方法:

在/etc/hosts 中加入 127.0.0.1 localhost之后能进入图形界面