SSH X11 Forwarding...
dsr at tao.merseine.nu
dsr at tao.merseine.nu
Mon May 26 12:01:26 EDT 2003
On Mon, May 26, 2003 at 01:35:22PM -0700, Wizard wrote:
> While we're discussing SSH, I'm trying to implement X11 Fowarding on a
> Solaris 9 box, but can't seem to get it working. I can set my display under
> telnet and X is redirected to my SGI box, but when I login using SSH, the
> server errors with something like "Can't find display: " and there is no
> display set. 1.) How do I set the display (I would guess 'setenv DISPLAY
> ip:disp', as in telnet), and more importantly, 2.) What do I set it to
> (obviously the IP won't work)?
If DISPLAY is not set by ssh, then the tunnel hasn't been created.
You'll never need to set it manually.
Look at:
sshd config on the server side -- is XForwarding allowed?
ssh client config -- is XForwarding turned on?
To manually turn on X forwarding, try:
ssh -X user at remote
and check for the existence of $DISPLAY.
Oh, if the server side does not have minimal Xlibs and apps, then X
forwarding won't work. Doesn't sound like that's the problem, but it
could be.
ssh -vvv turns on debugging info -- often useful.
-dsr-
--
Network engineer / pre-sales engineer available in the Boston area.
http://tao.merseine.nu/~dsr
More information about the Discuss
mailing list