x11 forwarding in ubuntu 14.04 LTS

On server
======================
apt-get install xauth

/etc/ssh/ssh_config    #ssh client system-wide configuration file


Host *

ForwardX11 yes
ForwardX11Trusted yes


/etc/ssh/sshd_config     #daemon configuration

X11Forwarding yes
X11DisplayOffset 10


At client
==============
ssh -X user1@192.168.0.135

echo $DISPLAY
localhost:19.0



If it says anything other than localhost, it's quite possible you are not configured properly. If it says nothing, go down to the Configuring the SSH Server line.
To perform an actual test of the graphics, run xclock. A small clock should appear on your desktop if it works.
#to run firefox browser

#firefox -no-remote

No comments:

Post a Comment