[nylug-talk] SSH calling home
Henning Follmann
hfollmann at itcfollmann.com
Mon Mar 10 13:16:59 EDT 2008
On Mon, Mar 10, 2008 at 10:36:38AM -0400, Samat Jain wrote:
> Combine this with autossh (run on the firewalled box) to make sure the tunnel
> gets restarted if it dies for whatever reason:
>
> # Always assume initial connection will be successful
> export AUTOSSH_GATETIME=0
> # Disable echo service, relying on SSH exiting itself
> export AUTOSSH_PORT=0
> autossh -f -- -o 'ControlPath none' -R 1234:localhost:22 remote-machine -fN
>
> On Monday 10 March 2008 09:45:29 am Adrian Sai-Wah TAM wrote:
> > Maybe this works:
> >
> > Accessible Box: Run SSH
> > Firewalled Box: ssh accessible box, with option "-R 1234:localhost:22"
> > Your Box: ssh accessible box, with specified port 1234
> >
> > The accessible box and your box could be the same box.
>
Thanks,
that sounds like the best solution.
Henning
--
Henning Follmann | hfollmann at itcfollmann.com
it consultant | www.itcfollmann.com
More information about the nylug-talk
mailing list