• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Remote X through SSH

`danny

Limp Gawd
Joined
Feb 26, 2007
Messages
384
I recently have gotten into Linux and have installed Fedora 8 on my laptop and Fedora 9 on my workstation that sits at home. I want to be able to access my workstation at home via a gui that is forwarded through ssh. I have tried the command ssh -Y root@ipaddy.com and can login in but do not know what to do after that to get a gui. Any help would be greatly appreciated.

Thanks,

Dan
 
ssh -X user@host appname

check the manpage for more info

Yup. Just be sure that your sshd configuration supports it.

Once you're logged in, just run a command that ordinarily spawns a GUI (xpdf, etc) and it will appear on your local machine. Don't expect any great speed though.
 
Ok I am able to connect but I do not know how to spawn a GUI, xpdf does not work :(
 
Well once I ssh to the machine via SSH I want to start a remote X session. I have tried gnome-session and that does nothing. Any help?
 
just run a command that normally has a gui window

you don't start an entire session like with remote desktop. You run a program and that program appears on the local X server.
 
Keep in mind that you have to run a local Xserver on your machine in order to tunnel remote X applications over SSH; in other words, you cannot just type xcalc in the console (the actual console not a window with a terminal in it) and expect it to show up on the screen.
 
Why not use VNC? On my gentoo box I have it set up so that I can type
Code:
# vnc-server
and it'll create a new fluxbox session for me to vnc into on port 5901.. I can do this as many times as I want on subsequent ports.. ie: typing `vnc-server` again starts a completely different session on port 5902..

To access them remotely I use SSH-Port-Forwarding.. for example:
Code:
# ssh scjudd@home -L 5901:localhost:5901
would map my laptop's 'local' port 5901 to my gentoo box's port 5901. I could then start up a VNC viewer and connect to localhost:5901 on my laptop and it would pop up my newly created gentoo vnc session.

To kill the sessions when I am finished with them (to save resources), I simply type:
Code:
# vnc-server -kill :1
or :2, :3, :4 accordingly.

I would look into this method. Check http://gentoo-wiki.com/VNC for more information.
 
Back
Top