Difference between revisions of "Autossh"

From wikieduonline
Jump to navigation Jump to search
(Created page with "apt install autossh == See also == * {{netcat}}")
Tags: Mobile web edit, Mobile edit
 
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
apt install autossh
+
{{lc}}
 +
* Homepage: https://www.harding.motd.ca/autossh/
 +
* Man: https://linux.die.net/man/1/autossh
  
 +
Installation
 +
* <code>apt install autossh</code>
 +
* <code>[[brew install autossh]]</code>
 +
 +
 +
* Loop waiting to connect to server:
 +
<code>AUTOSSH_POLL=5 AUTOSSH_GATETIME=0 [[autossh -M]] 0 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 YOUR_SERVER_NAME_OR_IP</code>
 +
 +
== Related ==
 +
* <code>[[.bash_profile]]</code>
 +
* [[alias]]
 +
* [[sshpass]]
  
 
== See also ==
 
== See also ==
 +
* {{Autossh}}
 
* {{netcat}}
 
* {{netcat}}
 +
* {{ssh clients}}
 +
 +
[[Category:Security]]

Latest revision as of 11:05, 21 September 2023

Installation


  • Loop waiting to connect to server:

AUTOSSH_POLL=5 AUTOSSH_GATETIME=0 autossh -M 0 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 YOUR_SERVER_NAME_OR_IP

Related[edit]

See also[edit]

Advertising: