How To Use SSH on Windows PuTTY - Generate Public/Private Key Pair & File
Using a Public/Private key to authenticate when logging into SSH can provide added convenience or added security. The Public/Private key can be used in place of a password so that no username/password is required to connect to the server via SSH. Instead, the unique public and private keys provide secure authentication. The keys may also be generated with a different password from your cpanel password if desired.
- In the Bluehost control panel.
- Click on the SSH/Shell Access icon under the Security category.
- Open the Manage SSH Keys tool.
- Click Generate a New Key and complete the fields shown. We recommend the RSA key type and 4096-bit key size for maximum security.
- The location of the newly generated public and private key will be shown as well as the key fingerprint.
- Click Go Back.
- Next to the Public Key, you generated, click Manage Authorization, then click Authorize to activate this public key.
- Click Go Back.
- To the right of the Private Key, click on View/Download. Then click the Download Key button. Save the file to your computer and click go back.
- Download and open PuTTYgen from the PuTTY Download Page
- Click the Load button.
- Locate the private SSH key that you have downloaded.
- Enter the password for your SSH Key.
- Click the Save private key button to create the ppk file.
- In PuTTY, under Session, enter your Host Name.
- Under Connection, click Data.
- Enter your cPanel username as the Auto-login username.
- Under SSH, choose 2 from the Preferred SSH Protocol Version.
- Under SSH -> Auth, you will need to specify where your private key can be found. Remember, this is where you saved the private key on your local computer.
- Click the Browse to locate the file on your computer.
- Under Sessions, type a name (such as "my site") in the Saved Sessions box and then click Save.