Created
January 22, 2012 05:36
-
-
Save pigmonkey/1655784 to your computer and use it in GitHub Desktop.
Create a persisent SSH tunnel to an SMTP server using autossh.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/autossh -f -M 0 -o "ServerAliveInterval 30" -vCNL 4098:smtp.gmail.com:587 user@myserver.tld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment