We allow customers to connect to their hosting via SSH so that they may run commands on the command line should they wish too, this can sometimes be useful for things like Git, making mass file systems edits, searching the files with grep commands etc. To connect you will require an SSH key, we do not allow password authentication for security reasons.

How to generate an SSH key

OpenSSH (Linux, macOS)

  1. First, you will need to open a terminal and run the "ssh-keygen" command.
  2. You will be asked where you want to store your key pair, by default, this is "~/.ssh" which is the best location so press Enter.
  3. Next, you will be asked to enter a passphrase, you may leave this blank to be able to establish SSH connections without entering a password but it is recommended to add a passphrase to encrypt the private key in case someone gets hold of it.
  4. Your SSH key pairs have now been created, you can find them in "~/.ssh" by default. The SSH client will automatically use these keys.
  5. The public key is in the .ssh directory and has .pub in the file name, this is your public key which you can share with anyone. Never share the private non-public key. 

PuTTY (Windows)

First, open PuTTYgen and click generate. Once you click generate you will need to move your mouse around in the program to create random data for the key generation.

52c0b2b2a39e9e063e8c7623bd921e9a65497dd2bbdcd61b26f03b4f6ac36698c538699a1acb3475?t=10d354013682af2319d79551cf1ad87a

Once the key has been generated you may enter a passphrase for added security. 
Save your public and private keys somewhere where they won't get lost or be moved.

8e6037ec74229eb2dbb09b8570d2e5316a605f49ef54d1de7db433895ca9315b03b1418242823107?t=8f6c48e43af88038d7c0eb45f965cf14


Once your public and private keys are saved you will need to open PuTTY and go to the Auth section under Connection and then SSH.
In the "Auth" section set the private key file for authentication.

25e7119802dabdf7c98abf71415c0fe857f5cbed478425f77cab90153f38d9acd117718939454a75?t=dd541d360e8f230ba5757aeb6da86e9a

Once your public key is on your server you can go to Session, enter the IP address, make sure the connection type is SSH and click "Open"

e962e1993508d163d70ba32589830bbb75a5d5fe738d787f01172f02be6fe591960e56a308c8f4cb?t=2a60c6e4c6520637c78ad88ba23c11e1

How to upload your public key for SSH authentication

cPanel

Once logged into cPanel scroll down to the security section and click on SSH Acess.

70b0b2f47ac2590a1c536ec5296a5568853e4885632cf6cf074a60e92c070a647539067518a73940?t=9a4de711d357c470d5051942f8725ebe

Click "Manage SSH Keys" 

9cdb0d49d24f3bf96023eacdf0570c0aca4f46ebd63d690b27540edb39b9f4fdbf1df22a625a834b?t=85b55269d31a4d4a259faac14c5f5e07

Click "Import Key".

5fb6f6a3c5355c62bfdabf923aa6b903de524fa7356e11c7d44924e2599aab42bc5ef5a4be5707b5?t=af456443e03cf9570949f3dac7e39b42

Set the name of your key. Copy and paste your "id_rsa.pub" public key, you can usually find this in your ".ssh" folder and enter the passphrase if you have set one. You can leave the private key area blank.
Click Import and go back to the Manage SSH Keys section.

9ce62278c4021ce53d3b9a61e003ad5439b54e166608a968c1f3eebc3f6123d9f90a8c178d271ddc?t=654c5798218e651ec41af87effea9359

Under the public keys find your key and click Manage.

418580433bef46f80a5e84ddb19b4d6bc20ff65bc4a8d66d5bcb5fc60865f514a2fec2e37004103a?t=315d6c48173aed776ebcd38bdd7c2028

Authorize the SSH key and you should now be able to establish an SSH connection with the server.

b5b6ea59889184a3a98d8e505f74e83c4d0701fcf857c0c6f18c80e00c04b985b5c77d3975ce5990?t=8307429b3ab065ef331cef72c67bf3d0

Plesk

Once logged into your Plesk control panel you will need to look at the right-hand side for the SSH Keys option.

1b1c0557fe773efcbb107b2b625b63f0bcfaa67dd22fe8e9f886ec36afd9fe53f565a895a02946cc?t=6ff42749d30db18eb5dd998ab08ba07c

Once at the SSH Keys Manager click "Add Key"

3ac1142f4c2cf001e03b0411675cf57f473f05631d8a1d9cd3780d57d8d8579dec7ab1da2fdb548d?t=5eea2338c8d1805296f6d6de08cf2ed0

Copy and paste your "id_rsa.pub" public key, you can usually find this in your .ssh folder and click Add.

d2bd8dcaf00efb0358842bfde378bec9ad41a0ec128a12c95401b8839485f27a42a555450cdd738b?t=51f461e8680bff98f2dc28a19e9ca500

Once your key has been added go back to "Websites & Domains" and copy the IP Address in your domains subscription and make a note of the system user, open a terminal or puTTY and SSH onto the system using the system user as the username.

Got stuck?


Open a ticket in the customer portal, call 03300 882130, or email support@freethought.uk for further help.