wget https://raw.github.com/hectornguyen/autossh/master/autossh.sh -O /usr/local/bin/autosshThis usage is as same as ssh command but I suggest you use SSH aliases instead of IP, for example
autossh root@prod-serverOr you can enter to interactive mode by just use it without any paramters
autosshIt will ask you to enter SSH Username and SSH IP/Aliases.
Reference to SSH aliases, please take a look to this guide.