Change SSH port and enable X11 forwarding

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
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

– restart sshd

 /etc/init.d/sshd restart

Now you should connect to

Configuring iptables on CentOS

– disable SELINUX

vi /etc/selinux/config

– reboot or run

 setenforce 0

– add iptables rules

Remotley start programs on your Linux Desktop

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…..