Created
June 12, 2018 05:56
-
-
Save kyxap1/0a83c0f9a8cc1a43f518c79910aa677f to your computer and use it in GitHub Desktop.
autossh autostart in OSX: launchctl load ~/Library/LaunchAgents/net.pro-manage.hatch.ssh-tunnel.plist
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
<?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> | |
<dict> | |
<key>SuccessfulExit</key> | |
<true/> | |
</dict> | |
<key>Label</key> | |
<string>net.pro-manage.hatch.ssh-tunnel</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/autossh</string> | |
<string>-M</string> | |
<string>0</string> | |
<string>-o</string> | |
<string>ControlMaster no</string> | |
<string>-o</string> | |
<string>ServerAliveInterval 15</string> | |
<string>-o</string> | |
<string>ServerAliveCountMax 20</string> | |
<string>-p</string> | |
<string>2222</string> | |
<string>-l</string> | |
<string>kyxap</string> | |
<string>-o</string> | |
<string>DynamicForward 8087</string> | |
<string>-o</string> | |
<string>ExitOnForwardFailure yes</string> | |
<string>-i</string> | |
<string>/Users/kyxap/.ssh/id_rsa</string> | |
<string>-T</string> | |
<string>-N</string> | |
<string>hatch.pro-manage.net</string> | |
</array> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment