Created
March 13, 2017 17:43
-
-
Save shanmuha/d97e9f1abdaf1c9b804f748f332a3ffd to your computer and use it in GitHub Desktop.
ssh redirect launchd daemon for osx sierra
This file contains hidden or 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 Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.teesh.sshdredirect</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>Sockets</key> | |
<dict> | |
<key>Listeners</key> | |
<dict> | |
<key>SockServiceName</key> | |
<string>62010</string> | |
<key>SockType</key> | |
<string>stream</string> | |
<key>SockFamily</key> | |
<string>IPv4</string> | |
</dict> | |
</dict> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/socat</string> | |
<string>TCP-LISTEN:62010,reuseaddr,fork</string> | |
<string>TCP:localhost:22</string> | |
</array> | |
<key>StandardOutPath</key> | |
<string>/var/log/redirectssh.log</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/redirectssh.log</string> | |
<key>Debug</key> | |
<true/> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding the socket listener on port 62010 as you did here will cause the socat command to fail as it won't be able to bind to a port that is already in use. I recommend removing the Sockets key: