Technical Blog Post
Abstract
Ubuntu exporting Display through SSH Tunnel
Body
So i have a running Ubuntu 14.04 Server on PowerKVM and was looking at exporting the display as there is no loacal X server running. The client i am using is Ubuntu 14.04 Desktop
so to do this i used the ' ssh -X Uname@serverip' and had checked the Display Var and it had been set but when i tried to run a GUI program it stated X11 connection rejected because of wrong authentication.
The steps i took to get to this point where:
Server side
1 disabled UFW
2 installed openssh-server
Client side
1 disabled UFW
2 Ran xhost +
after doing this i ran into the above issue X11 connection rejected because of wrong authentication.
to fix this i Did the following checking if it was working after each step
1 Check disk to make sure the is space df -H
2 Server side: i was the owner of Xauth, ls -l ~/.Xauthority
3 Server side chane owner and permissions
$ chown user:group ~/.Xauthority
$ chmod 0600 ~/.Xauthority
3 Server side: X11 fowarding was set to YES
$ grep X11Forwarding /etc/ssh/sshd_config
4 Client side: in the sshd_config file make sure
Host *
ForwardX11 yes
lines exsist
After these steps i had restarted the ssh connection
' ssh -X Uname@serverip' and checked the Display Var and then ran xclock as a test and it worked
~Evan
UID
ibm16171021