/autossh

Longlive SSH sessions!

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Installation

wget https://raw.github.com/hectornguyen/autossh/master/autossh.sh -O /usr/local/bin/autossh

Usage

This usage is as same as ssh command but I suggest you use SSH aliases instead of IP, for example

autossh root@prod-server

Or you can enter to interactive mode by just use it without any paramters

autossh

It will ask you to enter SSH Username and SSH IP/Aliases.

Reference to SSH aliases, please take a look to this guide.