Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Having trouble making ssh X-windows tunnels work...

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Oct-29-05 02:21 PM
Original message
Having trouble making ssh X-windows tunnels work...
Hey folks!

I have a Mac here with OSX, and XDarwin X-Windows server which works great locally.

Remotely I have Debian Linux servers.

I edited the sshd config file on the remote server to say "yes" for X tunnelling and then did a /etc/init.d/ssh reload

But when I ssh -X to that server, DISPLAY is still not set.

What am I likely to be missing?

Thanks!
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
bemildred Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Oct-29-05 04:39 PM
Response to Original message
1. The exact syntax depends a bit on the shell you use
on the Debian servers. The basic problem is that
you need to set the DISPLAY variable in the shell
that runs on the Debian machine when you "ssh -X"
on the OSX box. I assume you want to run various
X applications on the Debian boxes and host them on
the X server on the OSX machine.

I would do something like this:

ssh -X '/bin/csh DISPLAY=osx:0 -c "debian X application"'

You might have to fiddle with those quotes, I'm not sure if
that's perfect.

You could also use the ssh "user@hostname" argument to get
a specific user on the Debian box with the DISPLAY variable
set appropriately in the .rc file for that user.

You can also run a nested server (Xnest) on the Debian box
via a shell and host it on the OSX machine, and then just run
things from a remote shell on the Debian box having set
DISPLAY manually there.

Does this make any sense to you?
Printer Friendly | Permalink | Reply | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Oct-30-05 06:04 PM
Response to Reply #1
2. Makes sense...
But does not seem to want to work. In the past when I have used an SSH tunnel for X, DISPLAY got set up automagically. I'm going to try Xnest
Printer Friendly | Permalink | Reply | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Oct-30-05 07:19 PM
Response to Reply #2
3. Solved it...
Somehow, the stuff that got installed for Xnest included whatever was missing to get DISPLAY to set itself up properly...
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:49 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC