Difference between revisions of "Autossh"
Jump to navigation
Jump to search
Function:
| Line 1: | Line 1: | ||
| − | {{lc}} | + | {{lc}} [https://linux.die.net/man/1/autossh man] |
* Homepage: https://www.harding.motd.ca/autossh/ | * Homepage: https://www.harding.motd.ca/autossh/ | ||
| − | |||
Installation | Installation | ||
Revision as of 20:14, 23 April 2026
- Homepage: https://www.harding.motd.ca/autossh/
Installation
apt install autosshbrew install autossh
Loop waiting to connect to server
AUTOSSH_POLL=30 AUTOSSH_GATETIME=0 autossh -M 0 test
AUTOSSH_POLL=5 AUTOSSH_GATETIME=0 autossh -M 0 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 YOUR_SERVER_NAME_OR_IP
Function: .bash_aliases
function ssh_auto() {
AUTOSSH_POLL=30 AUTOSSH_GATETIME=0 autossh -M 0 "$1"
}
alias sa='ssh_auto'
Related
See also
Advertising: