Skip to content

Instantly share code, notes, and snippets.

@yifanlu
Created May 6, 2012 21:12
Show Gist options
  • Save yifanlu/2624414 to your computer and use it in GitHub Desktop.
Save yifanlu/2624414 to your computer and use it in GitHub Desktop.
<!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>com.yifanlu.sshtunnel</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ssh</string>
<string>-T</string>
<string>-D</string>
<string>8088</string>
<string>-C</string>
<string>-N</string>
<string>root@your.host.here</string>
<string>-p</string>
<string>53</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>StandardErrorPath</key>
<string>/tmp/sshtunnel.err</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment