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

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

3 Answers

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

2

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 (or /private/etc/ssh/sshd_config in later versions) (you'll need to do this in a sudo shell or via sudo vi /etc/sshd_config).

3

I'd prefer:

sudo systemsetup -setremotelogin on 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like