Skip to content

Instantly share code, notes, and snippets.

@swinton
Created February 12, 2015 20:20
Show Gist options
  • Save swinton/127b039a1fc31ba65f0b to your computer and use it in GitHub Desktop.
Save swinton/127b039a1fc31ba65f0b to your computer and use it in GitHub Desktop.
launchd plist for running a SOCKS proxy with an autossh tunnel wotsit.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>swinton.autossh</string>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
</dict>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/autossh</string>
<string>-M</string>
<string>20000</string>
<string>-D</string>
<string>9999</string>
<string>[email protected]</string>
<string>-N</string>
</array>
<key>StandardOutPath</key>
<string>/Users/steve/Logs/autossh/autossh.stdout</string>
<key>StandardErrorPath</key>
<string>/Users/steve/Logs/autossh/autossh.stderr</string>
<key>User</key>
<string>steve</string>
<key>ThrottleInterval</key>
<integer>30</integer>
</dict>
</plist>
@swinton
Copy link
Author

swinton commented Feb 14, 2015

Also, this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment