OS X enable SSH from the command line

systemsetup -getremotelogin

systemsetup -setremotelogin [on|off]