[H-GEN] remote display of programs
michael at anthon.net
Thu May 30 07:36:44 EDT 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
I wasn't sure how to do this. I had tried before but never had enough time
to follow it through. After a bit of fiddling I came up with this....
ssh user at host -C -T -R 6000:127.0.0.1:6000 -N -n -f
which means ssh to host as root, enable compression, don't allocate a tty,
forward remote port 6000 to local port 6000, don't execute a shell on the
remote host, redirect input from /dev/null and fork into the background
Seems to work although I am not sure if all those options are required
----- Original Message -----
From: "Andrew Pollock" <andrew at andrew.net.au>
To: "Michael Anthon" <michael at anthon.net>
Sent: Thursday, May 30, 2002 5:11 PM
Subject: Re: [H-GEN] remote display of programs
> You look like you've got a good grasp of SSH port forwarding :-)
> Is it possible to establish a port forward with SSH without getting the
> the other end?
> I want to run an SSH from my /etc/ppp/ip.up.d that brings up a tunnell
> my ADSL connects, but don't want to leave a shell sitting around on the
> On 26.05.2002 at 21:45:20, Michael Anthon <michael at anthon.net> wrote:
> > [ Humbug *General* list - semi-serious discussions about Humbug
> > [ Unix-related topics. Posts from non-subscribed addresses will
> > There is a couple of ways to do this using ssh.....
> > 1. Chain some port forwarding ssh sessions between the machines like
> > (Port 6002 picked randomly... sortof)
> > host1> ssh user at host2 -R 6002:127.0.0.1:6002
> > host2> ssh user at host3 -R 6002:127.0.0.1:6002
> > host3> ssh user at host4 -R 6002:127.0.0.1:6002
> > host4> export DISPLAY=127.0.0.1:2
> > host4> someXprogram
> > 2. Cascade ssh session from one machine to the next in such a way
> > you can create a new session from you rlocal host to the next one in the
> > sequence, then use the final one to do X forwarding like so
> > host1> ssh user at host2 -L 1200:host3:22
> > host1> ssh user at 127.0.0.1 -p 1200 -L 1201:host4:22
> > host1> ssh user at 127.0.0.1 -p 1201 -X
> > The first one is pretty straight forward (I think) and requires only a
> > single shell on host 1, the second one is a little more complicated and
> > requires 3 shells on host1 (actually, I think it can be done with just 1
> > I'm not quite sure about that).
> > The first command in the second method establishes a tunnel from host1
> > 1200 to host3 port 22, which then allows you to establish a second
> > tunnel from host1 to host4 whcih then allows you to create an ssh
> > directly (in an indirect kinda way) with host 4 and enable X forwarding.
> > I have done very similar things myself but normally only via one proxy.
> > There are, of course, other options... VNC is one as someone suggested
> > however this would require a very similar setup to provide a tunnel
> > host4 and host1. Another possibilty would be one of the VPN packages
> > available.
> > Cheers
> > Michael
> >  For want of better terms
> > --
> > * This is list (humbug) general handled by majordomo at lists.humbug.org.au
> > * Postings to this list are only accepted from subscribed addresses of
> > * lists 'general' or 'general-post'. See http://www.humbug.org.au/
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General