Jim Foster on Tue, 16 Apr 2002 15:12:04 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] X forwarding via ssh


At 02:41 PM 4/16/2002 -0400, you wrote:
[Jim, if you must reply to an existing thread when you go to start a
new one, do those of us using a threaded MUA the favor of changing the
subject and removing the In-Reply-To: header, please.]

Good point, sorry 'bout that.

On Tue, Apr 16, 2002 at 02:09:16PM -0400, Jim Foster wrote:
> Time for another newbie question, how do I forward X via ssh?   This is on
> RH v7.2.  Thanks.

The question's a bit unclear... is your client running on RH 7.2 or
the server? Or both?

I have a home machine running RH 7.2 that I'd like to access from my laptop at work running Win2K. On the laptop I run Putty for ssh and Cygwin for X. I can log into the shell from work via putty. Cygwin works on my home LAN for a graphical login to the Linux machine.



Presuming the last option, do:

ssh -f -X <host> xterm

Do you know how to do this with putty?



If you want to have X forwarding on all the time with a given host,
you can set that in your ~/.ssh/config file as so:

Host <host>:
        ForwardX11 yes

Note that you *can* use a wild-card, *, in place of <host>, but
this is strongly discouraged as you should only forward access to
your local X server to trusted hosts, and you should explicitly
state your trust of the host on general principle. Giving a remote
host access to your local X console is effectively giving them root
access to your machine, based on how poorly-design i386 memory
management is.

Actually, my /etc/ssh/ssh_config has: Host * ForwardX11 yes


Note also that the sshd on the server will need to have:

X11Forwarding yes

set in its sshd_config in order for you to be able to do this.

I've got that set.


--
gabriel rosenkoetter
gr@eclipsed.net
Thanks for your help!

--
Jim Foster - jif "at" computer .org http://www.voicenet.com/~jfoster
"Being on a Beemer and not having a wave returned by a ICQ 679709
Sportster is like having a clipper ship's hailing not RAM 2500 Cummins
returned by an orphaned New Jersey solid waste barge." -OTL '91 K100RS16V



______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug