Privacy Policy
Snippets index

  Use X11 via SSH

Connect via ssh enabling trusted X11 forwarding

ssh -Y -C remotehost

Notes:

  • Mac users: KEEP AN INSTANCE OF X11 TOOLS FOR OSX RUNNING !
  • -C requires compression of all data to speed up SSH X11 Forwarding

Install X11 tools on remote system (Ubuntu in this case)

apt-get install xinit x11-apps unclutter

Eventually install a graphic editor

apt-get install gedit

Eventually

sudo vim /etc/X11/Xwrapper.config
> allowed_users=anybody

To avoid “X11 connection rejected because of wrong authentication” when switching user

ssh -Y user1@remotehost
sudo cp .Xauthority /home/user2/
su user2
xeyes

See: http://superuser.com/questions/805725/how-do-i-debug-x11-connection-rejected-because-of-wrong-authentication#answer-817933