xmanager3.0使用Xstart不能连接redhat5.4
Xstart配置完成后(/usr/bin/xterm -ls -display $DISPLAY),连接远程redhat系统,没有反应,提示如下:
[18:36:15] Connecting to '192.168.44.35'...
[18:36:15] Connected.
[18:36:15] Version exchange initiated...
[18:36:15] server: SSH-2.0-OpenSSH_4.3
[18:36:15] client: SSH-2.0-nsssh2_3.0.0019 NetSarang Computer, Inc.
[18:36:15] SSH2 is selected.
[18:36:15] Algorithm negotiation initiated...
[18:36:15] key exchange: diffie-hellman-group14-sha1
[18:36:15] host key: ssh-dss
[18:36:15] outgoing encryption: aes128-cbc
[18:36:15] incoming encryption: aes128-cbc
[18:36:15] outgoing mac: hmac-sha1
[18:36:15] incoming mac: hmac-sha1
[18:36:15] outgoing compression: none
[18:36:15] incoming compression: none
[18:36:15] Host authentication initiated...
[18:36:15] Hostkey fingerprint:
[18:36:15] ssh-dsa 1024 8f:d3:55:f0:cd:e7:d3:85:ea:43:42:15:7c:78:c5:61
[18:36:15] Accepted. Verifying host key...
[18:36:15] Verified.
[18:36:15] User authentication initiated...
[18:36:15] Sent user name 'root'.
[18:36:15] Sent password.
[18:36:24] Sent password.
[18:36:24] Access granted.
[18:36:24] Sent X11 forwarding request...
[18:36:24] Succeeded.
[18:36:24] Sent the command line.
[18:36:24]
[18:36:24] Start timer (TIMER_SHUTDOWN, 180).
后来从网上搜索相关解决方法,成功解决,方法如下:
使用其它ssh软件登录远程redhat系统,然后找到/usr/share/gdm/defaults.conf(或者/etc/gdm/custom.conf)这个文件,如果操作系统不是redhat5.4可以相关的位置与配置文件名称会不一样,请注意此处。
然后在该文件中加入如下内容:
Enable=true
DisplaysPerHost=10
Port=177
然后启动gdm服务,命令如下:
/usr/sbin/gdm
注:停止gdm:/usr/sbin/gdm-stop
重启gdm:/usr/sbin/gdm-restart