Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

SSH X11 Forwarding...



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org