Skip to content

Instantly share code, notes, and snippets.

@pigmonkey
Created January 22, 2012 05:36
Show Gist options
  • Save pigmonkey/1655784 to your computer and use it in GitHub Desktop.
Save pigmonkey/1655784 to your computer and use it in GitHub Desktop.
Create a persisent SSH tunnel to an SMTP server using autossh.
/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