How do I connect via SSH to cPanel using PuTTY?

Procédure

What is SSH connection on cPanel used for?

Your cPanel web hosting gives you the possibility to connect to your account through SSH software such as PuTTY. However, you will first need to generate an SSH key, which is different from the procedure used for VPS private servers.

SSH access allows you to manage your web hosting space via the command line. It can not only help you speed up certain tasks such as downloading a remote file and unzipping it on your web space, but it can also give you access to certain things that you are not able to perform through your cPanel dashboard.

How do I connect to cPanel via SSH using PuTTY?

The ability to connect via SSH is available on all our cPanel reseller hosting offers and our cPanel hosting offers.

How to add your IP address on the SSH server:

1. Log in to your cPanel control panel. In the Security section, click on the Firewall icon.

How do I connect via SSH to cPanel using PuTTY?

2. Click on Add an incoming rule.

How do I connect via SSH to cPanel using PuTTY?

3. Add your IP address in the corresponding field (1) and select SSH as the service type (2). Then click the Add button (3).

How do I connect via SSH to cPanel using PuTTY?

The change will be applied within a few minutes.

How to generate your SSH key for cPanel?

1. Log in to your cPanel account, scroll down the page and click on the “SSH Access” icon

How do I connect via SSH to cPanel using PuTTY?

2. Click on "Manage SSH Keys".

How do I connect via SSH to cPanel using PuTTY?

3. Then click on "Generate a New Key".

How do I connect via SSH to cPanel using PuTTY?

4. Enter the password of your choice, then click on "Generate a Key"

How do I connect via SSH to cPanel using PuTTY?

You should then see a message telling you that key generation is complete. Click on the "Return" tab:

How do I connect via SSH to cPanel using PuTTY?

You must then grant authorization for key-based login by clicking on "Manage":

How do I connect via SSH to cPanel using PuTTY?

Then click on "Authorize"

How do I connect via SSH to cPanel using PuTTY?

Click on the "Return" tab:

How do I connect via SSH to cPanel using PuTTY?

5. Click on "View/Download"

How do I connect via SSH to cPanel using PuTTY?

6. Convert the key to ppk format so that it can be used in PuTTY. To perform the generation, you will need to enter the password you defined in step 4.

How do I connect via SSH to cPanel using PuTTY?

As soon as the key is generated, click on the "Download Key" button:

How do I connect via SSH to cPanel using PuTTY?

How do I connect to cPanel via SSH on Windows?

1. Start your PuTTY software, then go to the "SSH" section, then "AUTH" and search for the id_rsa.ppk file that you downloaded in the previous step. Finally click on "Open".

How do I connect via SSH to cPanel using PuTTY?

2. Then go to the session section and in the "Host" field enter the IP address associated with your server then click on "Open"

How do I connect via SSH to cPanel using PuTTY?

3. The following window will open so that you can log in:

How do I connect via SSH to cPanel using PuTTY?

Your cPanel username is located in your cPanel client area:

How do I connect via SSH to cPanel using PuTTY?

After entering your username, press the "Enter" key on your keyboard. Enter the password associated with your SSH key to connect. (Warning: when you enter the password, it will not be displayed, for security reasons).

How do I connect via SSH to cPanel using PuTTY?

How do I connect to cPanel via SSH on Linux?

  •   Install Remmina by following the instructions for your Linux distribution
  •   Launch Remmina from the terminal by typing: remmina 

How do I connect via SSH to cPanel using PuTTY?

  • Click on the + icon to add a new connection profile

How do I connect via SSH to cPanel using PuTTY?

  1. Name: Add a name for your connection profile, for example: My LWS SSH account
  2. Protocol: choose the SSH - Secure Shell protocol
  3. Server: Enter the IP address of your cPanel server
  4. Username: Enter your cPanel username
  5. Authentication type: Choose SSH identity file
  6. Identity file: select the id_rsa file from your computer, which corresponds to the private key and which you downloaded from your cPanel (it is not necessary to convert it to PPK format)
  7. Private key passphrase: Enter the password you defined for the private key

​

Then click on the Save and Connect button:

How do I connect via SSH to cPanel using PuTTY?

Connect via SFTP using Remmina on Linux:

You can also use Remmina to connect via SFTP and perform operations on the files hosted in your cPanel (Publish/Delete/Download)

For this, simply change the Protocol to SFTP - Secure File Transfer without changing the other settings you configured for the SSH connection

Conclusion

You are now able to generate an SSH connection key and use the PuTTY & Remmina software to connect to your cPanel web hosting via SSH with LWS.
You can disable the SSH key or delete it from your client account at any time.

Feel free to contact our technical support team via a incident ticket for any questions.

help.lws.net/a/753
Was this article helpful?

Yes

No

Read 47 899 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

Questions about the article 1

Ask a question
jean
il y a 9 mois
salut Pour la configuration de SSH je veux savoir si c'est mon adresse ip public que je dois ajouter
Maxence-LWS Official answer
il y a 9 mois

Bonjour,

Je vous remercie pour votre message.

Pour autoriser un accès SSH dans un pare-feu, vous devez mettre votre IP publique (celle depuis laquelle vous vous connectez).

Je vous remercie de votre attention et reste à votre disposition pour toute autre question ou complément d'information.

Si besoin, pour plus de précisions et un accompagnement, vous pouvez nous contacter depuis votre espace client ou sur cette page : https://www.lws.fr/contact. 

Cordialement, L'équipe LWS

Was this answer helpful?

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.