Knowledge Base
MilesWeb / How-Tos

How to use SSH on Windows PuTTY?

Approx. read time : 2 min

Use of Public and Private Key while logging into SSH provides security and added convenience. These keys can be used in place of a password so that no username or password is required to connect to the server via SSH. You can also generate keys with a different password from your cPanel password if required.

# Following are the Steps to generate a Public/ Private Key Pair

1. Log in to cPanel and click on the SSH/Shell Access icon under the Security category.

2. Now open Manage SSH Keys tool.

3. Click on Generate a New Key and complete the fields that are shown. For maximum security try using RSA key type and a 4096-bit key size.

Note: There is a bug present in cPanel at this time that does not allow you to create a 2048 or 4096-bit DSA key.

4. The location for the newly generated public and private key will be displayed as well as the key fingerprint.

5. Click on Go Back.

6. Click on Manage Authorization present next to the Public key you have generated. Then click on Authorize to activate your public key.

7. Click on Go Back.

8. Click on View/Download located to the right of the Private Key. Click on the Download Key button. Now Save the file to your computer and click on Go back.

Now, you can use the private key saved on your computer to securely log in with SSH to our server. If you are already using PuTTY then refer following steps for the configuration :

# Steps to Generate a ppk file

1. Download PuTTYgen from PuTTY Download Page and open it.

2. Click on Load

Windows PuTTY 1

3. Identify and locate the private SSH key that you have downloaded.

Note: Choose All Files* from the list on the right of the File Name field.

4. Enter your password for SSH Key

Windows PuTTY 2

5. Click on the Save private key button to create the ppk file.

Windows PuTTY Private key

# Steps to Configure PuTTY

1. On PuTTY configuration under Basic options for your PuTTY session enter your Host Name.

Windows PuTTY Host name

2. In the category on the right side of the panel, go to Connection under it select Data.

3. Now, in the text box for Auto-login username enter your cPanel username.

Windows PuTTY username

4. Under the SSH section, choose 2 from Preferred SSH Protocol Version

5. Under SSH-> Auth specify the location where you want your private key to be found.

Note: This location should be the same as where you saved the private key on your local computer.

6. Click on Browse to identify and locate the file of your computer.

Windows PuTTy key browser

7. Under Sessions, enter the name (example “my site”) in the Saved Session box and click on Save.

That’s it!

Also Read :

1)Steps to Connect to Your Account Using Putty SSH Terminal

With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna