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.
Table of Contents
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”;
- In the left column of the service, enable the “Remote Login” option.
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”;
- Restart the Firewall;
- Unlock Access with “Lock” icon;
- Turn it “Off” and put it “On” again;
- 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:
- 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.