Introduction
PuTTY is a free application that allows Windows users to access Linux servers via SSH. This article provides the steps necessary to SSH into a cPanel server using PuTTY with a public key.
Procedure
Please note that the following instructions assume that PuTTY has already been installed.
- From the Windows "Start" menu, open the PuTTYgen application.
- Under the "Actions" section, click the "Generate" button.
- Copy the contents of the "Public key for pasting into OpenSSH authorized_keys file" text box.
- Paste the public key into a text document.
- Enter a passphrase in the "Key passphrase" text box.
- Enter the same passphrase in the "Confirm passphrase" text box.
- Click the "Save private key" button.
- Enter a file name in the "File Name" text box.
- Select "PuTTY Private Key Files (.ppk)" from the "Save as type" dropdown menu.
- Click the "Save" button.
- Access the server's command line as the SSH user.
- Open the .ssh/authorized_keys file with your preferred text editor.
- Copy the public key from the text document and paste it into the .ssh/authorized_keys file.
- Save the changes and exit the text editor.
- From the Windows "Start" menu, open the PuTTY application.
- Load the session profile the key will be used with.
- Navigate to "Connection » SSH » Auth."
- In the "Authentication parameters" section, click the "Browse" button.
- Select the .ppk file saved above.
- Click the "Open" button to open the SSH connection.
Comments
0 comments
Article is closed for comments.