ssh -X

Associate
Joined
21 Oct 2008
Posts
1,679
Location
Mooching... in your house
Am I right in thinking that by adding -X to an ssh connection command I can run GUI apps from the server but see them on my client?

Sounds a bit too good to be true... Plus I tried it (just tried to run chess but nothing happened) - have I got my wires crossed as to the capabilities of ssh for this purpose? Could anybody shed some light?
 
If you have an X server on both machines, then yes.

I have even done X forwarding to run an application on a linux machine on a Windows machine which has cygwin:

(excuse the odd screenshot)
cygwin.png
 
hmm... I'm using macs and all i know is that when i use the -X switch the X11 application starts up, which would mean everything i need is installed?

in that case, how do i run the actual apps? i have navigated to the Applications folder and typed the app name but is just says (for example):

Mugens-iMac:Applications mugen$ Chess.app
-bash: Chess.app: command not found


using "open" in front of it also doesn't work...

Any ideas?
 
Last edited:
"xhost +" on the server if it needs it. This controls who can make connections to the X server, however you shouldn't need to do this on modern distros (not sure whether they already have something in .Xauthority that permits by default everyone).
 
Ah, now you've said your using Mac's. The xhost command will apply but apps aren't X applications afaik. So you will be best using VNC I'm afraid.
 
Back
Top Bottom