Managing the SSH Server in Mac OS X
To configure the SSH server in Mac OS X, edit the /etc/sshd_config file.
To stop the SSH server:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
To start the SSH server:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist