How to connect to hosting via SSH (cPanel, macOS)

How to connect to hosting via SSH (cPanel, macOS)



Generating SSH keys

1. In order to create SSH keys run the Terminal app and execute the following command:
ssh-keygen -t rsa
2. The system will ask you to save your keys to /home/user/.ssh/id_rsa. Press Enter;
3. Come up with a password for your key and type it twice. No symbols will be displayed when typing the password, this is normal. Once you’ve finished, press Enter;
4. You will the message stating that your pair of keys is created;
5. To view the public key’s code execute the following command:
cat ~/.ssh/id_rsa.pub
6. Copy your public key’s code to your clipboard and to a safe place;

Configuring an SSH connection

1. Go to your client area to the “Hosting management” section and click the “Open cPanel” button;
2. cPanel will be opened. Go to the “Security” section and click the “SSH Access” button;
3. Click the “Manage SSH keys” button
4. Click the “Import Key” button;
5. Paste your public key’s code you’ve copied into the “Paste the public key…” box;
6. Type the password you used when creating the keys into the “Passphrase” box;
7. Click the “Import” button;
8. You will see the “The key was imported.” message. Click the “Go back” link;
9. Now you can see, that your key is “not_authorized”. Click the “Manage” button in front of this key;
10. Click the “Authorize” button;
11. You will see the “The key has been authorized!” message. Click the “Go back” link;

Establishing an SSH connection

1. Now go back to the Terminal app to establish an SSH connection;
2. Execute the following command:
ssh [email protected]_server
where
your_login – your hosting service login which is sent in the welcome email after ordering a hosting service;
your_server – your control panel’s address (it can be copied from the browser’s address line). For example – cpanel20.v.fozzy.com;
3. The system will ask you to confirm this operation. Type ‘yes’ and press Enter;
4. Type the password you used when creating the keys. No symbols will be displayed when typing the password, this is normal. Once you’ve finished, press Enter;
5. Done

Other useful manuals can be found here:

— THE FASTEST HOSTING! 😎👍🏻

🔸 Shared Hosting from $3 / month.
🔸 Domains from $0.82 / year.
🔸 Linux VPS & Windows VPS from $8.99 / month.
🔸 Free SSL certificates.

Join us!
FB –

4 thoughts on “How to connect to hosting via SSH (cPanel, macOS)

  1. HUGE Thank you for this video! This helped me so much. The biggest step I was missing when setting up the SSH Keys was simply to go into the CPanel and "authorizing" it. Aaargh. Just incase others are having issues, here's a few notes I'd add.

    1. 0:12 – It is optional to add a passphrase, but highly recommended that you DO add one. To not add a passphrase, simply hit enter at this time and then enter again. OR to add a passphrase, enter it, and then enter the same password again to confirm it.

    2. 0:33 – If you added a passphrase, you DO NOT need to add it in CPanel (just as he didn't in this video). I wasn't sure if I needed to add it or not on this step – but I didn't and it worked fine.

    3. 0:54 – If you don't know your username – go to your CPanel. It is listed at the very top of the left CPanel, just above your main domain. It also seems that declaring port 22 is common. So when I logged in, the command was:
    ssh [email protected] -p 22
    It then asked me if I was sure I wanted to continue connecting? I typed "yes"

    I hope this helps – thanks again for the video. So helpful!!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *