I currently have a script in /etc/init.d which calls autossh with port forward to set up reverse ssh on the server. The command is preceded by 'sleep 20' to try to ensure the command is called after networking is active. The questions is, what is a better way to run this script later in the boot cycle (after networking is set up)? Could/should this be moved to /etc/rc.local or is there a better solution?
Asked
Active
Viewed 1,920 times
1
-
Check out http://serverfault.com/questions/224432/using-upstart-to-manage-autossh-reverse-tunnel – Dan Benamy May 25 '12 at 14:46