Loading...

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

  1. Find the Terminal application in launchpad and start it.
    mac-terminal-icon
  2. Go back to WHM and look for the newly created public key. Click on View/Download Key.
    public-key-whm
  3. Copy the Public Key.
    public-key-whm-copy
  4. 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).
     
  5. Create and edit a file by using the command below (replace “filename” with any file name you want).
    vim filename
    pwd-terminal-ssh
  6. Paste the SSH Public Key. You may need to press i from your keyboard to insert the key.
    public-key-terminal
  7. Press ESC and type: wq and press Enter.
    exit-editor-ssh-terminal
    Now you are able to connect to the server via SSH with the following command in the terminal window:
    authenticate-ssh
  8. Type in ssh [email protected]. (This is only an example. Please replace yourvpsaddress.com with your correct VPS address.)
     
  9. You will be asked if you want to continue connecting. Type in yes and press Enter.
    authenticated-ssh
  10. You will be asked for the password. Enter your VPS password (same with your WHM login password).

 

 

Loading...