Enable SSH server on Mac OSX is surprisingly easy. Open System Preferences > Sharing, and turn on Remote Login. You can futher restrict which user can login via SSH on the same screen.

A screenshot Sharing dialog box