Knowledge Base
Connect SSH via Mac OSx
Secure Shell (SSH) provides a secure way to connect to your server and manage it through the command line.
Learn the process of establishing an SSH connection from a Mac computer using the Terminal application. By following these steps, you will be able to authenticate with your server and access its command-line environment securely.
Before you begin
Make sure you have the following information available before starting:
- Your SSH credentials or SSH key.
- Your server hostname or VPS address.
- The appropriate account password if required for authentication.
Connecting SSH via Mac OSx through Terminal
- Find the Terminal application in launchpad and start it.

- Go back to WHM and look for the newly created public key. Click on View/Download Key.

- Copy the Public Key.

- Run the following command on your machine:
pwd
This will check the present working directory. Make sure it shows /Users/username/ (username pertains to your local computer username).
- Create and edit a file by using the command below (replace “filename” with any file name you want).
vim filename
NOTE. The word vodien next to vim is only an example. - Paste the SSH Public Key. You may need to press i from your keyboard to insert the key.

- Press ESC and type:
wqand press Enter.

Now you are able to connect to the server via SSH with the following command in the terminal window:

- Type in ssh [email protected]. (This is only an example. Please replace yourvpsaddress.com with your correct VPS address.)
- You will be asked if you want to continue connecting. Type in yes and press Enter.

- You will be asked for the password. Enter your VPS password (same with your WHM login password).
Did you find this article helpful?