IT/Software/Applications/Remote Login/autossh

From msgwiki
Revision as of 20:58, 13 October 2020 by Nathan (talk | contribs) (updated statements because I now have personal experience with autossh working reliably.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.

About

  • Autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. [1]

Reliable Reverse ssh Tunnel

  • You can put the following line in a cron script to run at bootup.
  • In practice so long as your remote server has consistent power this is reliable way to insure remote access without a WAN IP.
  • autossh -M 20000 -f -N your_public_server -R 1234:localhost:22 -C [2]



Sources