Putty from here. Download PuttyGen from same link. Once installed, open Puttygen and create a new pair of keys by clicking the “Generate” button. You can keep all the options at their default settings. It might be a good idea to set a passphrase for your key. Then, save both public and private key to a safe location. Name your public key <your_key_name>.pub and the private key <your_key_name>.ppk.
Now, upload your public key to a directory in your remote system. You need to import it and add it to the authorized_keys file with the command:
ssh-keygen -i -f key.pub >> ~/.ssh/authorized_keys
Replace key.pub with the path to your key. Now log out and start Putty.
In Putty, configure the following items:
* In Connection/Data, add your rmeote username
* Connection/SSH/Auth, browse to your private key file (<your_key_name>.ppk)
* Go back to Sessions, fill in the name or IP address of your remote machine, give your session a name and click on Save.
Now we need to set up Pageant – it is Pageant who will be doing the authentication for us. Open it up, right click on the icon in the system tray and select “Add key”. Select your private key. Now you have an item under “Saved sessions” in Pageant – clicking on your session will fire up Putty and Pageant handles authenticaton for you. Great eh? If your key has a passphrase, you will need to enter it only once, and after that Pageant remembers it for you.
Simple and a great time saver if you do this often
Source: http://www.dailyiteration.com/howto-passwordless-ssh-authentication-with-putty/
0 Responses to “Passwordless SSH authentication with Putty”