Step 1 – Run Terminal
Click the Spotlight icon, which is the magnifying glass in the upper-right corner of the screen. See the screenshot below for reference.
Type terminal in the search field. Then double click the result to open the terminal.
Step 2 – Connect via SSH
A new window with the terminal app will open.
Enter the command: ssh root@your-server-IP-address
Then provide your password and hit Enter.
On your first login attempt, the system will ask if you are sure you want to connect. Type yes and hit Enter.
Congratulations! You are now connected to your Linux server via Terminal on Mac.