How to use SSH Keys with PuTTY on a Linux server

13 October 2015, Tuesday 0 Comments

Note: This guide is for Windows users. If you are using Mac OS X or Linux on your home computer, please follow the steps on manage server page instead.

To connect servers, SSH key pair authentication method is using by siterobot.io. SSH keys are more secure than passwords, and can help you log in without having to remember long passwords.

For Windows users, a piece of software called PuTTY is typically used to create SSH sessions which allow you to connect to your server.

In this guide, we will show you how to connect to your servers without a password using your private key.


1. Download and Install PuTTY and PuTTYgen

To get started, we'll need to download and install both PuTTY and PuTTYgen.




You can find links to both of these at the project's website.

http://www.putty.org/


2. Create an SSH Key (.ppk) with PuTTYgen

We will begin by downloading .pem file to connect to server.  

Servers > Manage > SSH/RDP Remote access info > Download SSH key pair




Open PuTTYgen software.



Start PuTTYgen (for example, from the Start menu, click All Programs > PuTTY > PuTTYgen). Click Load. By default, PuTTYgen displays only files with the extension .ppk. To locate your .pem file which is downloaded from siterobot.io manage server page, select the option to display files of all types.




Click OK to dismiss the confirmation dialog box. Click Save private key to save the key in the format that PuTTY can use. PuTTYgen displays a warning about saving the key without a passphrase. Click Yes. Specify the same name for the key that you used for the key pair (for example, my-key-pair). PuTTY automatically adds the .ppk file extension.





3. Load SSH Key (.ppk) file to PuTTY

In the Category pane, expand Connection, expand SSH, and then select Auth.




Click Browse. Select the .ppk file that you generated for your key pair, and then click Open.


4. Prepare your SSH connection by PuTTY

In the Category pane on the left, select Session and complete Host Name field.

Write down the connection line which is starts with username and ends with IP address (eg: ec2-user@12.34.56.789). And now you may click Open and your SSH connection is ready!




From now on, you may create a SSH connection between your home computer and your server via PuTTY.


Share this


Comments