Skip to content

Instantly share code, notes, and snippets.

@risyasin
Created June 23, 2024 15:28
Show Gist options
  • Save risyasin/3c0f60f79428e02b9f46aced5057c706 to your computer and use it in GitHub Desktop.
Save risyasin/3c0f60f79428e02b9f46aced5057c706 to your computer and use it in GitHub Desktop.
macos ssh fwd plist
<?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>local.ssh.forward.r1</string>
<key>LaunchOnlyOnce</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ssh</string>
<string>-T</string>
<string>-N</string>
<string>-R</string>
<string>22452:127.0.0.1:22</string>
<string>root@176.9.77.205</string>
<string>-i</string>
<string>/Users/yas/.ssh/id_rsa</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/local.ssh.forward.r1.stderr</string>
<key>StandardOutPath</key>
<string>/tmp/local.ssh.forward.r1.stdout</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment