/Library/LaunchAgents/com.xxxx.jenkins.autosshd.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.xxxx.jenkins.autosshd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/Cellar/autossh/1.4f/bin/autossh</string>
<string>-M</string>
<string>5678</string>
<string>-NR</string>
<string>8081:localhost:8080</string>
<string>username@xxx.xxx.xxx.xxx</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
iMac建立到服务器的反向ssh
最新推荐文章于 2023-08-02 10:19:21 发布