You might want to look at autossh which will automatically reopen closed tunnels.
Check your linux distribution for packages (Debian has it packaged, as does some
of the BSDs)
Otherwise, get it from here: http://www.harding.motd.ca/autossh/
--
No trees were harmed in the transmission of this message, however a large number
of electrons were seriously inconvenienced.
Quoting Paul Greidanus <[EMAIL PROTECTED]>:
Martin Glazer wrote:The quick and easy way to do that would be something like "ssh -L 22:remote:2200 remote" if you've got a SSH daemon on the remote box.. otherwise, a 3rd box could work too, and do something similar. maybe use -R rather then -L to allow other then just localhost to get at the port if it's a 3rd machine.Hi,
I am looking to setup a reverse SSH shell. Basically, I want a system (behind a firewall with no open incoming ports) to connect back to my computer and provide a shell on the remote PC for me to use.
Obviously I will need some sort of listener on my side and some method of telling the remote computer to connect back.
Does anyone know of a method to accomplish this - using openSSH or otherwise?
you'd ssh localhost -p 2200 to get back through the tunnel..
If you want to get a little more crazy, you could start playing with ipsec tunnels too, but you need more at the endpoint box then just a ssh daemon.
-- Paul Greidanus CAD Administrator / Systems Administrator Center of Excellence in Integrated Nanotools University of Alberta [EMAIL PROTECTED] 780-492-7368 http://www.cein.ualberta.ca
_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying
--------------------------------------------------- This message was sent using Echostar Secure Webmail
pgp52j0lkqxtk.pgp
Description: PGP Digital Signature_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

