Running X through SSH

Published: Nov. 29, 2015, 3:49 p.m.

Sometimes you may want to run a program with a GUI on a remote system - an IDE on a desktop for development without creating the development environment locally, a browser to access a web interface on a network you don't have access to or pgadmin on a server only allowing the administrator access locally.
Usually I'd go about this using VNC/NoMachines, but it can be a pain to set up for something quick.
How about this instead:

ssh -X user@host

Not fast enough?

ssh -XC user@host

The -C flag enables compression.

EDIT: Google Chrome didn't play so well with this - I had to disable extensions and plugins.

 google-chrome --incognito --disable-extensions --disable-plugins

Worked fine after that.

EDIT 2: I've started using X2GO instead


vnc ssh