= Generate a SSH key Pair (Public and Private) and Use it with PuTTY = == Download PuTTY == * You can download the PuTTY ssh from [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]] * Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe|Putty.exe Agent]] * Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe|puttygen.exe]] == Generate the key pairs == 1. Launch `puttygen.exe` * Type of key to generate: SSH-2 RSA * Number of bits in a generated key: 1024 1. Click on the `Generate` button to create your key pair 1. After finish you can choose to use the keys with or without passphrase. It is recommended to set a secure passphrase. 1. Save the Private key (you can call it `privatekey`) * Remember that you have to keep it in a safe place. This key is private and you should be the only person who has access to it. Treat it like a password. 1. Save the Public key (you can call it `publickey`) * This is the only key that you can share and this is the key that you have to install in the machine you want to access. == Install the Key to be used with PuTTY == 1. Start PuTTY 1. In the `Category` section on the left, scroll down and under `Connection > SSH`, select the `Auth` option. Where it says `Private key file for authentication:` click on the `Browse` button and find the private key you generated previously and click the `Open` button to load it. The text field should now be filled in with the path to your private key. 1. In the `Category` section, select the `Session` option towards the top of that list of options. Fill in the `Host Name` field with your account hostname (your account domain or IP address will also work). 1. To save this profile for later so you don’t need to do this each time you connect, type a name for this session in the `Saved Sessions` text field on the lower half of that screen. Then, click on the `Save` button to the right and the session will now be saved for later (it will show up where `Default Settings` is showing). Next time you connect to the server, you would simply select the session you created and then click on the `Load` button, and then select the `Open` button at the bottom to load that saved session. ---- CategoryUserSupport