SSH or Secure Shell is an encrypted connection protocol which is used to connect to the command line interface of a remote machine. MacOS features a built-in SSH client called Terminal which allows you to quickly and easily connect to a server.

In this article, we’ll outline how to SSH to a server using the Terminal program on Mac OS X (Unix).

How SSH Works

SSH utilizes TCP port 22 by default, although this can be changed to a non-standard port. The SSH process uses symmetric encryption, asymmetric encryption and hashing in order to securely connect the client to the remote server.

The first time you connect to the server, you will be asked to verify the public key of the server. On future connections, the client will reference this verified public key to ensure that you are still connecting to the same server by referencing the known_hosts file.

Both the client and the server negotiate a session key which is used to encrypt and decrypt the data sent during the SSH connection.

Finally, the server authenticates the client using an SSH key (if available and used).

See Also: Experience Our for Free VPS Hosting: Enjoy a 30-Day Trial with Risk-Free Servers

What You’ll Need

  • A server accessible via SSH on a public IP address
  • The IP address of the remote server
  • The username and password of a user on the server
  • A Mac OS computer

Connecting to a Server via SSH in Terminal

Step 1: Open Terminal

In Finder, open the Applications folder and double click on the Utilities folder.

Double click on the Terminal application. You can drag this icon to your dock for easy access.

Step 2: Enter the standard SSH command

The basic syntax of connecting to SSH is as follows:

ssh user@IP-Address

Replace user and IP-Address with the username and IP on the remote server. Hit return to execute the command.

This will connect to the server via SSH with the username user and the default SSH port 22. The connection will look similar to the following:

SSH Command Examples and Options

Here are some common SSH command examples which can be used in the Terminal application.

Getting a List of SSH Commands and Syntax


Specifying a Port in SSH

If the remote server is using a non-standard port, you will need to specify this during the connection process:

ssh -p 24601 user@IP-Address

Connecting with an SSH Key

If you wish to connect using an SSH key instead of a password, use the following command:

ssh -i key.file user@IP-Address

Connecting in Verbose Mode

Verbose mode is helpful in diagnosing SSH connectivity issues as it outputs all of the steps of the connection process:

ssh -v user@IP-Address

Ending the SSH Connection

Type exit to end the connection.

See Also: Experience Our for Free VPS Hosting: Enjoy a 30-Day Trial with Risk-Free Servers

Customizing the Mac OS Terminal

The default terminal in Mac is a white and grey interface like this:

But there are a variety of different colour configurations, including dark mode.  You can change the look of the Terminal in Terminal > Preferences menu:

Double click a new theme on the Profiles tab to launch a new Terminal window. Click the Default button to set the new theme as your default.

Your new Terminal theme is now active.

Next Steps

Now that you are connected to the remote server, you can execute any commands available in that particular environment. To make things easy during future sessions, you could setup an SSH key pair so that you do not need to enter a password when connecting via SSH in Terminal.

Need help connecting to your Zumiv server via SSH in Terminal? Contact our support team, or share your feedback in the comments below!

What are your feelings


Bare Metal Dedicated Servers

A single tenant, physical server allowing you full access to its resources

Read More

Cloud VPS

The cheapest way to get your own independent computing instance.
Read More

Cloud VDS

Virtualized server platform hosted on enterprise-grade physical servers
Read More

10 Gbps Unmetered Servers

Zumiv offers high bandwidth dedicated servers up to 20Gbps.
Read More
free vps hosting qca50satdzdvwwiktdobzdsj43rc5tgslgo4e8d8lg qjmota74oi2zrgboohj848ng55q3ywzsnke3rxmdvo


Receive the latest news, updates and offers. You can unsubscribe at any time.


Receive the latest news, updates and offers. You can unsubscribe at any time.

zomiv footer logo


Support Hours: 24x7x365
Sale Office Hours: M-F, 7AM-5PM EST

We accept the following:

download (6)



© Copyright 2024, All Rights Reserved by DataCamp Int Limited.

Zomev is a trading name of DataCamp Int Limited. Registered Office: 71-75 Shelton Street, Covent Garden,
London, United Kingdom, WC2H 9JQ.Registered Number 15527709. Registered in England and Wales.



Receive the latest news, and offers. You can unsubscribe at any time.