1. Linux Server’s IP:192.168.1.100
2. Install Desktop Enviroment on server
2.1 List software group
yum grouplist
2.2 Install Gnome
yum groupinstall “GNOME Desktop Environment”
2.3 The server can run in level 3 or level 5.By default,OPENSSH enable X11 forward,make sure your /etc/ssh/sshd_config on “X11 forward” look like
X11Forwarding yes
3. Configure Linux client which must run in level 5
3.1 login in the server
[root@client ~]# ssh -X username@192.168.1.100
the output should contain DISPLAY
[root@server_192.168.1.100 ~]# env |grep -i DISPLAY
DISPLAY=localhost:10.0
[root@server_192.168.1.100 ~]# xclock
If you can see a clock,it means that the X11 forward is successful.
4. Configure Windows client
4.1 Install X server : Xming and launch it.
4.2 Install a ssh client,such as SecureCRT,putty.
4.3 Configure SecureCRT
Options–Session Options–Connection–Port Forward–Remote/X11
enable Forward X11 packets,click ok,Connect to the server 192.168.1.100,after login in,also type “env |grep -i DISPLAY” to make sure the desktop enviroment is ok.
type xclock,you will see a clock.