Difference between revisions of "Autossh"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
− | * 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> | + | * 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 == | == Related == | ||
− | <code>[[.bash_profile]]</code> | + | * <code>[[.bash_profile]]</code> |
+ | * [[alias]] | ||
+ | * [[sshpass]] | ||
== See also == | == See also == |
Latest revision as of 11:05, 21 September 2023
Installation
apt install autossh
brew install autossh
- 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: