Add sshd port macsox mavericks

por | 18 julio, 2014

Edit:
#vi /System/Library/LaunchDaemons/ssh.plist

Add:

                 <key>Alternate Listeners</key>
            <dict>
                    <key>SockServiceName</key>
                    <string>2222</string>
            </dict>

To:

<key>Sockets</key>
        <dict>
                <key>Listeners</key>
                <dict>
                        <key>SockServiceName</key>
                        <string>ssh</string>
                        <key>Bonjour</key>
                        <array>
                                <string>ssh</string>
                                <string>sftp-ssh</string>
                        </array>
                </dict>

                 <key>Alternate Listeners</key>
            <dict>
                    <key>SockServiceName</key>
                    <string>2222</string>
            </dict>
        </dict>

Unload and load plist

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

 

And Restart sshd service