Nextpertise a journal of interesting technical ideas . . .

Using SSH (Part 5) - Remotely Possible

by Brent Stewart on Tuesday, Sep 22, 2020

I confess that I never meant for this to be an SSH blog. It was an easy topic to write about when we started, but friends keep suggesting new things I should cover. The takeaway then is that SSH is a heck of a tool and can be used to accomplish a lot of different things.

Today’s topic is running a GUI program on a remote computer and displaying the output locally. Pretty cool, right? This is suprisingly easy to do.

Why would we want to do this? I already covered that under “pretty cool”, but I suppose I could say something about using your netbook to run a big program that needs lots of RAM and CPU.

To demonstrate, I’m going to run the text editor from my server on my desktop.

ssh -X brent@192.168.1.1 # -X or -Y work  
pluma

Displaying a remote program

Simply SSH into a remote host using either the -X or -Y switch. From the remote prompt, enter the command to run the graphical program of your choosing and the window will be displayed locally. Using “-X” (as shown in the code) allows this to work but keeps the X11 Security extension restrictions. Using “-Y” like I did in the screen capture bypasses those restrictions. From an operative point of view, they act identically.

This has been the most straightforward of the series. If you’re interested in SSH, check out:



References:
  

Recent articles related to these tags: SSH Linux
Share this article:    Tweet