This document will help you connect to make real remote connection to your Mac server using SSH protocol.

SSH (“secure shell”) is an application-level network protocol designed for secure remote access to UNIX systems.

How to Activate SSH Connection in macOS

Follow the instructions in this article to enable remote control of SSH for macOS server:

  • Open the “System Preferences”;
  • Choose “Sharing”;
How to Connect to macOS via SSH?
  • In the left column of the service, enable the “Remote Login” option.
How to Connect to macOS via SSH?


If the firewall is enabled (by default), you may need to restart the firewall to allow SSH passing through port 22:

  • Open the “System Preferences” -> “Security and Privacy”;
How to Connect to macOS via SSH?
  • Restart the Firewall;
How to Connect to macOS via SSH?
  • Unlock Access with “Lock” icon;
  • Turn it “Off” and put it “On” again;
How to Connect to macOS via SSH?
  • If you cannot log in, restart the firewall or restart the computer.

Read more: How to use SSH on a Mac?

Connect to SSH Server

UNIX-based operating systems, such as macOS and Linux, include a built-in SSH command that works almost the same everywhere. We need to know the IP address of the SSH server and the password for the user or root.

To connect to an SSH server, open a terminal window on a Mac:

  • Open “Terminal”;
  • To connect to the SSH server, enter the following command in the terminal, replacing the username on your’s SSH server login and use the hostname or IP address of the server to which you are connecting:
ssh [email protected]
  • A message will appear on the screen to confirm your identity, you must enter a password and the system will greet you and inform you of a successful login.


SSH is effective in that it encrypts all information transmitted over the network, in contrast to the telnet protocol. Basically, it is needed to remotely manage user data on the server, run service commands, work in console mode with databases. This does not end the possibilities of this tool.

It’s the best time to ask questions and give us your feedback in comments.


Hi there! My Name is Vincent Lago! My goal is to share insightful reviews, guides, and manuals for people looking to know more about current solutions for Apple hardware and OS. I have years of technological background knowledge including owning a custom iMacs & PCs which was using for different types of business. And now, I want to share my experience with you.

Write A Comment