gabriel rosenkoetter on Tue, 16 Apr 2002 14:42:05 -0400


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

[PLUG] X forwarding via ssh


[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.]

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?

Presuming the last option, do:

  ssh -f -X <host> xterm

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.

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.

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpoZZpSSSnAf.pgp
Description: PGP signature