CentOS SSH X11 Forwarding

To setup SSH X11 forwarding on CentOS, we need to:

1. On the remove server, edit /etc/ssh/sshd_config, and set the following values:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

2. On the remove server, install the package xorg-x11-xauth:

# yum install xorg-x11-xauth

3. On the remove server, install the fontconfig packages:

# yum install xorg-x11-fonts-base liberation-fonts

4. Now login to the remote server using "-Y" option:

local$ ssh -Y remote_server

5. In the remove server, run your X program, such as the xterm:

remote$ xterm

And you shall see the X program pop up in your local desktop.