IT/Software/Applications/Remote Login/autossh: Difference between revisions

From msgwiki
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.
No edit summary
m (updated statements because I now have personal experience with autossh working reliably.)
 
Line 1: Line 1:
== About ==
==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.  <ref>[https://linux.die.net/man/1/autossh https://linux.die.net/man/1/autossh]</ref>
 
== Reliable Reverse ssh Tunnel ==
*Autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic.  <ref>https://linux.die.net/man/1/autossh</ref>
* In theory, you should be able to put the following line in a cron script to run at bootup.
 
* In practice I have done almost no testing on this.
==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.
*<code>autossh -M 20000 -f -N your_public_server -R 1234:localhost:22 -C</code> <ref>https://superuser.com/questions/37738/how-to-reliably-keep-an-ssh-tunnel-open</ref>
*<code>autossh -M 20000 -f -N your_public_server -R 1234:localhost:22 -C</code> <ref>https://superuser.com/questions/37738/how-to-reliably-keep-an-ssh-tunnel-open</ref>


Line 11: Line 14:
<strong>Sources</strong>
<strong>Sources</strong>
----
----
<references />

Latest revision as of 20:58, 13 October 2020

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