Check Installing CentOS 6.2 on VMware post.
– configure ssh port
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old vi /etc/ssh/sshd_config #uncomment port 22 and change to port 4568
– enable X11 forwarding
#install needed libraries yum -y install xorg-x11-xauth xorg-x11-fonts-base liberation-fonts vi /etc/ssh/sshd_config #add X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes
– restart sshd
Now you should connect to 192.168.126.128:4568
– disable SELINUX
vi /etc/selinux/config #change SELINUX=disabled
– reboot or run
– add iptables rules
It is very easy to start programs remotely on your windows desktop from another computer but running X11 application on Linux from another ssh session would start a new X11 session on your remote machine, that was a problem for me and here is how I solved that…..