Create an SSH key for your hosting

SSH is a secure way to connect to your hosting package. It is a better alternative to FTP. In this article we explain how you make a connection using an SSH key.

Also read:  Make an SSH connection via your computer  (with Terminal on Mac or Putty on Windows).


Step 1: Create your SSH key

To use SSH, you need your own SSH key. You create it via your own computer. How to do this is explained below.

Follow these steps to create an SSH key with PuTTY:

  1. You can download a PuTTY private / public key generator at this address .
  2. Run the downloaded file.
  3. Click on the Generate button.
  4. To generate even more randomness, move your cursor over the blank area.
  5. Enter a password and confirm again.
  6. Click Save private key and Save public key, and save the files in a place of your choice.
  7. You must configure the private key in your SSH client. In PuTTy you do that from SSH> Auth.
  8. You can copy the public key directly from the generator window. You will find it at the top of the field under the text “Public key for pasting into OpenSSH authorized_keys file”.

Follow these steps to create an SSH key in MacOS:

  1. Open “Terminal” and enter the following command to generate a new SSH key:
      ssh-keygen -t rsa
  2. When the message “Enter file in which to save the key” appears, simply click “Enter” to save it in the suggested folder.
  3. Terminal will ask you for a password for your SSH key. Choose a strong password. Your computer will request this every time you connect via SSH.
  4. Confirm your password and you have created an SSH key.

Follow these steps to copy your SSH key to your clipboard:

  1. Open “Terminal” and enter the following command to list the SSH keys in your .ssh folder:
      ls -lh ~ / .ssh
  2. Run the following command to copy the SSH key to your clipboard:
      pbcopy <~ / .ssh /

Step 2: Enter your SSH key on the control panel

Follow these steps in the control panel:

  1. Go to “My products”> “Web hosting”> Your domain name.
  2. In the menu on the left you choose “SSH”.
  3. Switch on “Activate SSH” so that you can connect.
  4. Select the “SSH keys” tab to enter your SSH key.
  5. Paste your SSH key and click on “Add”. The SSH key is now active.
Updated on 14 August 2020

Was this article helpful?

Related Articles