SSH on 10.5 and up is launched by launchd, and reads its port from /etc/services. To change the port, edit /System/Library/LaunchDaemons/ssh.plist and hard code the new port number in place of the service name.
ssh osx tips tutorials tricks tutorial terminal network networking openssh