Skip to content

Instantly share code, notes, and snippets.

@evkuzin
Last active May 29, 2019 10:51
Show Gist options
  • Save evkuzin/4db0c9196e2d3be2185f3bc0dbdc8d47 to your computer and use it in GitHub Desktop.
Save evkuzin/4db0c9196e2d3be2185f3bc0dbdc8d47 to your computer and use it in GitHub Desktop.
<?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>Label</key>
<string>org.openssh.port-forwards</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ssh</string>
<string>-D 8123</string>
<string>-i /Users/evkuzin/.ssh/id_rsa</string>
<string>-f</string>
<string>-C</string>
<string>-N</string>
<string>-q</string>
<string>###YOUR_HOST_HERE###</string>
</array>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>8123</string>
<key>SockType</key>
<string>stream</string>
</dict>
</dict>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
<key>StandardErrorPath</key>
<string>/tmp/org.openssh.port-forwards.launchd.err</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment