Click to See Complete Forum and Search --> : ssh and gui
booda
10-17-2002, 03:54 PM
Hello,
This is my second day on Linux and I wanted to know if it's possible to fire up a gui after a successful ssh connection. I think I've seen it done before but can't quite remeber what software was used. Thanks for any input.
~Booda
WCOutlaw
10-17-2002, 03:59 PM
You can use ssh to tunnel an X session, but not quite sure how - just using the normal secure shell, you won't be able to, as far as I know...
You can VNC to your machine, and start a session (eg, Gnome)...and I believe you can tunnel VNC through SSH as well - but if this is your 2nd day, I don't think you should be worrying about ssh tunnels just yet...
http://www.tldp.org or http://www.linuxdocs.org/ may be able to help you if you want to read up.
ehawk
10-17-2002, 04:16 PM
Well...when I log into a machine, I already have a gui going...but I can get graphics from other machines after an ssh connection. I actually use ssh2 now, and it seems to forward X automagically ( I think ssh does too). If it doesn't, I thought the sequence to do so went something like:
hostmachine$ xhost +remotemachine.remotedomain
adding remotemachine to key list or something...
hostmachine$ ssh2 remotemachine
connecting to remotemachine
passoword for ehawk:
remotemachine$ set DISPLAY=hostmachine.hostdomain:0
remotemachine$ [application command]
I would think you could log in at the command line, ssh to your remotemachine and then type "startx" as you application.