Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

this works for snow leopard desktop but not for snow leopard server. why?

   <key>Sockets</key>
    <dict>
            <key>Listeners</key>
            <dict>
                    <key>SockServiceName</key>
                    <string>22022</string>
                    <key>SockFamily</key>
                    <string>IPv4</string>
                    <key>Bonjour</key>
                    <array>
                            <string>22022</string>
                            <string>sftp-ssh</string>
                    </array>
            </dict>
    </dict>
share|improve this question

1 Answer 1

It worked when I tested it. I assume you've edited this in /System/Library/LaunchDaemons/ssh.plist, and then reloaded it with:

sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load /System/Library/LaunchDaemons/ssh.plist

BTW, you probably shouldn't change the entry in the Bonjour service array from "ssh" to "22022" -- that's the name the service gets advertised under, not the port number; you're offering the ssh service on port 22022, not the 22022 service.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.