---
title: 'How to connect via SSH to CPanel virtual hosting using Putty? | Zomro'
description: 'Today, we''re going to take a look at how to connect to your shared hosting service. We will see how to create a public and private SSH key and use them to connect via Put'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565471_screenshot_1101.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to connect via SSH to CPanel virtual hosting using Putty? 



# How to connect via SSH to CPanel virtual hosting using Putty?

25-05-2022

Today we specifically, using examples, will consider how you can connect to your shared hosting.  
Let's see how to create an SSH public and private key and use them to connect via Putty.  
  
**1.** In the virtual hosting control panel (CPanel), we need to go to the **"Security"** section in the**"SSH Access"** item.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565471_screenshot_1101.png)  
  
**2.** After going to the **"SSH Access"** item in the **"Management SSH Keys"** section, click on the **"Management SSH Keys"** button.![How to connect via SSH to CPanel virtual hosting using Putty? - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565405_screenshot_1102.png)  
After clicking, we get to the **"Management SSH Keys"** section where we can create a new key or import the previously created one.  
  
**3.** Let's see how to create a new key. To do this, click **"Generate a New key"**![How to connect via SSH to CPanel virtual hosting using Putty? - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565456_screenshot_1103.png)  
  
In the new window we have the option to change the key parameters such as:  
1) name - "Key Name";  
2) password - "Key Password";  
3) type - "Key Type";  
4) Size - "Key Size".  
  
In the field called Key Name, you can leave the standard, that is, "id_rsa". The key password must match some parameters:  
1) Key password cannot be missing;  
2) Password must be at least 5 character(s) long.  
3) Password strength must be at least 65.  
  
**4.** You can choose the password yourself or use a password generator. To do this, click on **"Password Generator"** , then on **"Generate Password"**. The generated password will need to be remembered or saved in a safe place, as it will be used in the future. After saving the password (in this case, our password is GQHKnD1i{z}- ), check the box next to the item "I have copied this password in a safe place.", Then click on **"Use Password"**.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565498_screenshot_1105.png)![How to connect via SSH to CPanel virtual hosting using Putty? - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565551_screenshot_1106.png)  
  
  
**5.** Check if the password is as strong as you need. The value in the **"Strength"** scale must be more than 65 values out of 100.![How to connect via SSH to CPanel virtual hosting using Putty? - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565587_screenshot_1107.png)  
  
If the value is greater than 65 then go to the next item. Otherwise, you need to come up with a stronger password.  
  
  
In the **"Key type"** item, you can leave the default value, that is, "RSA".  
In **"Key size"** \- the value is 2048.  
**6.** After all values are set, click **"Create Key"**.![How to connect via SSH to CPanel virtual hosting using Putty? - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565649_screenshot_1108.png)  
  
On the new page there will be a notification that the creation of the key is completed. Then press **"Back"**.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565652_screenshot_1109.png)  
  
**7.** After creating the key, we will have two new keys: Public and private keys. In the **"Public Keys"** section, in the **"Authorization Status"** field, we will first have the status **"not authorized"**. To authorize our key, click **"Manage"** , then **"Authorize"**. After authorization, you can see a notification that the key authorization was successful.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 9](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565663_screenshot_1112.png)![How to connect via SSH to CPanel virtual hosting using Putty? - 10](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565669_screenshot_1113.png)  
  
  
We return back. In the **"Authorization status"** field - the status is **"authorized"**![How to connect via SSH to CPanel virtual hosting using Putty? - 11](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565758_screenshot_1114.png)  
  
**8.** Next, we need to download the private key. To do this, in the **"Private Keys"** section, click on **"View/Download"**.![How to connect via SSH to CPanel virtual hosting using Putty? - 12](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565742_screenshot_1115.png)  
  
  
**9.** To download our key, we need to convert our key to PPK format.  
To do this, we need to write our password from the key that we created earlier in the **"Convert key "id_rsa" to PPK format"** field. Then click **"Convert"**.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 13](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653567022_screenshot_1117.png)  
**10.** Now you can download your key in PPK format to your PC.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 14](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653565785_screenshot_1116.png)  
**11.** Next, in order to connect to the virtual hosting using SSH keys, we need to go to the **"Connection"** \- **"SSH"** \- **"Auth"** section in Putty, in the **"Private key file for authentication"** section, enter the path to your file.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 15](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653491044_screenshot_1093.png)  
  
  
**12.** In the **"Session"** section, in the **"Host Name(or IP address)"** field, write the IP address of the virtual hosting. You can find the IP address in your personal account in the section **"Products/Services"** \- "**Virtual hosting"** \- select your service - "**Instructions"**. You can find the IP address of the virtual hosting in the Hosting information in the **"****Server IP address"** section.  
This IP address is used to connect to the shared hosting.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 16](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653491110_screenshot_1094.png)  
  
**13.** In the new window you need to register **"Username"**. You can find this information in the service manual - **"Products/Services"** \- "**Virtual hosting"** \- select your service - **"Instruction"**. In a new window in the section **"Control Panel"** \- **"User"**. We remember and write the name of the user in the console.![How to connect via SSH to CPanel virtual hosting using Putty? - 17](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653491037_screenshot_1095-kopija.png)  
  
**14.** After entering the user, we need to enter the password of the key we previously created.  
In this case, the password is "GQHKnD1i{z}-" . We write it. Also in security measures, password characters will not be displayed. After entering the password, press "Enter"![How to connect via SSH to CPanel virtual hosting using Putty? - 18](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653491027_screenshot_1096.png)  
  
After correctly entering the password, we get to the virtual hosting via SSH.  
![How to connect via SSH to CPanel virtual hosting using Putty? - 19](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a54@server-panel.net/2022/05/01/1653491101_screenshot_1097.png)  
  


Similar articles:

[How to configure idle RDP session timeout](https://zomro.com/blog/faq/298-kak-zadat-vremja-otkljuchenija-bezdejchtvujuschih-seansov-rdp) [Cloud VPS: how to create, restore, and migrate a server](https://zomro.com/blog/articles/645-cloud-vps-snapshots-how-to-create-restore-and-migrate-a-server) [How to configure and optimize a MySQL server on a VPS](https://zomro.com/blog/faq/544-how-to-configure-and-optimize-mysql-server-on-vps) [How to renew the virtual hosting service in the new billing](https://zomro.com/blog/faq/232-prodlenie-uslugi-virtualnogo-hostinga-v-novom-billinge) [How to file a complaint about abuse](https://zomro.com/blog/faq/595-kak-podat-zhalobu-na-zlopolzovanie)

[ Forex Server from €7.95/mon ](/server-for-forex)
