Code Snippet

Just another Code Snippet site

[Unix] X11 Forwarding

On client machine, define Env. Property :
DISPLAY=:0

run Xming server (default config)

start Putty with X11 enabled and X11 server defined.

connect to remote server

run command

xhost +<server_IP_address>

or

/usr/openwin/bin/xhost +<server_IP_address>

test X11 server using command :

gedit &

In case of font issue, run this command before starting installer :

export AWT_TOOLKIT=XToolkit

For Linux, ensure X11 packages are all installed :
xorg-x11-xauth
or
xorg-x11*

Ensure also that SSH allow X11 forwarding :

grep X11 /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

, ,


6 thoughts on “[Unix] X11 Forwarding

Leave a Reply

Your email address will not be published. Required fields are marked *