Skip to content

Instantly share code, notes, and snippets.

@lenciel
Last active December 6, 2022 07:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lenciel/d353a04a3a7bc0278ec6 to your computer and use it in GitHub Desktop.
Save lenciel/d353a04a3a7bc0278ec6 to your computer and use it in GitHub Desktop.
autossh plist file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>autossh.lenciel</string>
<key>ProgramArguments</key>
<array>
<string>/opt/boxen/homebrew/bin/autossh</string>
<string>-M</string>
<string>20000</string>
<string>-f</string>
<string>-i</string>
<string>~/.ssh/fuckgfw</string>
<string>-N</string>
<string>-L</string>
<string>0.0.0.0:3189:localhost:31280</string>
<string>remotehost</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/opt/boxen/</string>
<key>StandardErrorPath</key>
<string>/opt/boxen/log/autossh/autossh.log</string>
</dict>
</plist>
@got3nks
Copy link

got3nks commented Apr 25, 2020

Thanks a lot for sharing it!

In my case, I had to remove -f from the options.

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