Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you run a ssh server on Mac OS X?

share|improve this question
up vote 123 down vote accepted

Go to System Preferences -> Sharing, enable Remote Login.

share|improve this answer
... and make sure the user is included in "Allow access for" -.- – d4Rk Nov 4 '14 at 21:55

In System Preferences under Sharing, there is an option for Remote Login.

This will run sshd at startup (through launchd) and enable SSH access with standard options. To tweak the sshd options, edit /etc/sshd_config (you'll need to do this in a sudo shell or via sudo vi /etc/sshd_config).

share|improve this answer
Unfortunately, that config file won't allow you to edit the port used. To change the port, see – Tyler Collier Oct 23 '13 at 17:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.