参考了互联网上的资料,自己动手连接成功
[root@CentOS ~]# vi /etc/gdm/custom.conf
[security]
AllowRemoteRoot=true
#允许root用户进行连接,普通用户是都可以连接的
[xdmcp]
Enable=true
[root@CentOS ~]# vi /etc/ssh/sshd_config
X11Forwrding yes
前两步修改我的就可以用了,不行的话可能是由于防火墙的原因,
[root@CentOS ~]# iptables -A INPUT -p udp --dport 177 -j ACCEPT
xming中选择gnome-session
Tips
用telnet试图测试Xming的转发端口177 或 6000
telnet IP 端口
是不行的,原因是telnet使用tcp协议而Xming使用udp协议
阅读(1208) | 评论(0) | 转发(0) |