Hacker News new | ask | show | jobs
by cypherdog 5808 days ago
This one is simple, but I like it. Use -X command to launch a local x11 session for a given remote application. Works for Linux and OSX machines with x11 installed.

>ssh -X user@remoteserver.com will connect you. >gedit file.txt

will launch a remote instance (viewable locally) of gedit with the remote file.txt loaded and ready for editing. Especially good for those who don't like command line editors (note: gedit must be installed on the remote machine for the example to work.)

1 comments

This is a neat trick, and I've used it a lot -- but worth pointing out that this should really only be done over a local network. X11 apps tend to be VERY chatty, and very slow when forwarded over the internet. I'd recommend VNC or FreeNX to do remote X11 apps over the internet.
I absolutely agree. I work primarily on an local network at my work, so I don't often think about it.