On Thu, 2004-04-08 at 08:15, Ken Foskey wrote:
> I would like to use my desktop remotely and it is behind a firewall. 
> How would I do this:
> 
> laptop ssh -> Internet -> ssh firewall (Debian stable)
>                               |
>                               V
>                       Debian desktop
> 
> 
> I would like the X screen to come up on the laptop from the Debian
> desktop.  Desktop does have xdcmp enabled so when I am local I can
> simply `X -query server` to show the login screen.  I figure if I can
> forward the xdcmp packets then I would be right.

I may be wrong on this, since I don't ever do it. I /think/ that will
end up being complicated. Mostly because according to /etc/services, the
xdmcp protocol uses both TCP and UDP, and I believe ssh's -L and -R
options only work for TCP. It's worth seeing what happens with
port-forwarding, I might be wrong. So, something like

ssh [EMAIL PROTECTED] -L177:localhost:177
X -query localhost

might work. Who knows.

Some other options:
SSH will happily forward enough to get X programs running, so you could
run Xnest locally, ssh to your box and start gnome-session or whatever.
Something like

Xnest&
DISPLAY=:1 ssh [EMAIL PROTECTED] gnome-session

Finally, I've taken to using Xvnc when I need to forward a whole
desktop, simply because it's a lot faster when it has to do screen
redraws etc. And it's all TCP so ssh will happily forward it.

HTH,

James.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to