xmanager3.0使用Xstart不能连接redhat5.4

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值