Enable SSH on Mac
macOS has a built-in SSH server, you only need to enable it in System Preferences.
- Choose Apple menu > System Preferences, and then click Sharing.
- Check the Remote Login service.
- Next to “Allow access for”, choose all users.
Or select “Only these users”, and customize the list.
Establish a secured connection
Connect to a Mac using authentication key for SSH