Skip to content

Instantly share code, notes, and snippets.

@alpacas9
Created November 23, 2021 10:54
Show Gist options
  • Select an option

  • Save alpacas9/eb63e91b1266e01c6ba894e8b3ac1523 to your computer and use it in GitHub Desktop.

Select an option

Save alpacas9/eb63e91b1266e01c6ba894e8b3ac1523 to your computer and use it in GitHub Desktop.
remote ssh
/usr/local/bin/autossh -M 0 -q -N -o "ServerAliveInterval 60" -R 9998:localhost:9997 root@80.241.210.42
<?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>com.remote_tunnel</string>
<key>Program</key>
<string>/Users/octoclient/scripts/remote_ssh_tunnel.sh</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>LaunchOnlyOnce</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/remote_tunnel.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/remote_tunnel.stderr</string>
<key>UserName</key>
<string>octoclient</string>
<key>GroupName</key>
<string>admin</string>
<key>InitGroups</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment