|
|
|
10.4: Multiple sshd ports, one plist file.
If you want to listen on multiple ports, you do not need multiple .plist files, nor multiple service names... one will do.
Find the following lines in the ssh.plist file: ---- <key>Sockets</key> <dict> <key>Listeners</key> ---- Add new lines as shown below, with the new lines marked with "+": ---- <key>Sockets</key> <dict> + <key>Alternate Listeners</key> + <dict> + <key>SockServiceName</key> + <string>ssh2</string> + </dict> <key>Listeners</key> ---- This assumes you have already edited /etc/services to add ssh2 -- you can also just use a number directly (ie: "222") rather then specifying "ssh2". If you want more then two port numbers, just change "Alternate Listeners" in the first new line to something unique, and duplicate the 5 additional lines again. The instructions above about stopping/starting the service and also modifying the firewall still apply. |
SearchFrom our Sponsor...What's New:Hints3 new Hints in the last 24 hoursComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
|
|
Copyright © 2010 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.05 seconds |
|