By Keith McCartan on Tuesday, 22 April 2014
Category: Other

How to Generate SSH Keys & Connect to your VPS with PuTTY

This is a a bit (ok more than a bit) geeky but I wanted to share my notes on how to SSH to a remote server using PuTTY and public key authentication. People seem to have a lot of trouble with this - mostly with the dredded "server refused our key" error. There are several ways to set up PuTTY to use public key authentication. The method below has worked successfully for me many times -  mostly connecting to our CentOS VPS. I am sharing with you assuming you already have some basic Linux command line knowledge, you know what PuTTY is and that you understand you are using these instructions at your own risk.

NOW try and connect. Enter the passphrase when prompted. Now all you have to do is set up Pageant (an SSH authentication agent for PuTTY) to automate entering the passphrase. Lots of info online on setting up Pageant and I am sure you will figure it out for yourself. Hope this helps.