LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X forwarding via SSH (https://www.linuxquestions.org/questions/linux-software-2/x-forwarding-via-ssh-358569/)

bd1308 08-30-2005 02:03 PM

X forwarding via SSH
 
I opened /etc/ssh/ssh_config and turned the XFowarding option from off to on...saved, restarted sshd

didnt work....so i went back and uncommented it (took off the #)..saved, restarted

no beans....i remembered it was easier than this the last time i did it, but one of my buddies told me step by step how to do it, and I forgot now.....

david_ross 08-30-2005 02:12 PM

ssh_config is the client config. If you want to change the server options then edit sshd_config.

JimDog 08-30-2005 05:10 PM

Just as an FYI, I used to use ssh X11 forwarding to forward stuff from home to work but I found that using VNC through ssh was much more faster and snappier. Maybe it's because the X11 server I'm using at work is through cygwin where as VNC is native. Not sure, but I stopped using X11 forwarding through ssh because it was too slow (I only have 384kbps up at home). Of course this is just my experience and your may vary.

bd1308 08-30-2005 05:35 PM

didn't work either......

it did work before though....anybody know why it doesnt now....

I get the display not found error when i try to launch something,like mozilla........

pretty much I just want a desktop environment that I can use to mess around with when I can't use my apple.....

spooon 08-30-2005 07:13 PM

What OS are you ssh'ing from and what OS are you ssh'ing to? You mentioned an Apple? Are you sure you're running an X server on the computer you're ssh'ing from?

The computer you're ssh'ing into must have the "X11Forwarding" or whatever directive uncommented and set to on in sshd_config and if you change it you must restart sshd.

To enable X forwarding when you ssh you need to use the "-X" (uppercase X) flag on the ssh command (or set the "ForwardX11" or whatever directive to on in ssh_config). (In recent versions of OpenSSH, for best results, you need the "-Y" flag or the "ForwardX11Trusted" directive.)


All times are GMT -5. The time now is 02:23 PM.