I wanted to share with you guys the way to get ssh “listening” on your Snow Leopard System… Hope this helps someone

1. Open Terminal
2. vi /etc/sshd_config (use whatever editor makes you happy. vi is fastest)
3. I have the following uncommented on my machine:

Port 2233 # (means ssh will listen on port 2233 instead of 22 default)
AddressFamily any
ListenAddress 0.0.0.0

(feel free to adjust as needed)

4. Also make sure the following are UNCOMMENTED:

PermitRootLogin yes #(only if not in production though)
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication yes
X11Forwarding yes

5. Now vi /System/Library/LaunchDaemons/ssh.plist (or use whatever editor you like)

6. Change <key>Disabled</key> to Enabled

7. Change <string> (under Label) to local.sshd

8. Go down to the line that says SockServiceName .. now the next like (that says string) change to “ssh-batman” (or whatever you want that is unique.. i like batman)

9. Ok save and exit file..

10. Now vi /etc/services and add the following lines to the bottom:
ssh-batman 2233/udp # batmans SSH listening port
ssh-batman 2233/tcp # batmans SSH listening port

11. Save and exit file.

12. Finally start and stop the launchDaemons service which controls connections to SSHD (this is the mac osx equiv to inetd/xinetd in linux land)

launchctl unload /System/Library/LaunchDaemons/ssh.plist (ignore any errors)
launchctl load /System/Library/LaunchDaemons/ssh.plist

13. Now if you type “netstat -na | grep LIST” you should see something like the following:

tcp4 0 0 *.2233 . LISTEN
tcp6 0 0 *.2233 . LISTEN

VOILA!! Magnifique no?? now if you use:
ssh -p 2233 127.0.0.1

SSH WORKS AS IT SHOULD AND THE WORLD IS GOLD AND GOOD!

Cheers everyone.. hope this helps!

JDalbera