wget https://raw.github.com/hectornguyen/autossh/master/autossh.sh -O /usr/local/bin/autossh
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.