Step by step procedure to setup SSH key based Login from Windows Machine to GNU/Linux machine (Follow at your Own risk)
- Create a ssh key pair using GNU/Linux as follows
This will create two files (keypair) id_rsa (private key) and id_rsa.pub (public key) in .ssh directory under user’s home directory
- Copy public key (id_rsa.pub) to the users home directory on GNU/Linux Machine in following path. authorized_keys is file name contains the public key./home/username/.ssh/authorized_keys
- Copy the private key file (id_rsa) to windows computer using usb or another method what ever is good for you.
- To login to GNU/Linux machine from windows machine, it is required to convert the private key (id_rsa) to .ppk format. For that we need a software called “Puttygen”. So go to windows machine and download and install the PuttyGen (puttygen.exe) software from the link below http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
- Convert the private key to .ppk format using the following information. Open the Puttygen that has been recently installed
- Click on Load
- Select the file name id_rsa (private key file not the public one). Make sure to change the “Files of Type” option to “All Files (*.*).
- Click on open and you will get the following screen
- Click on “Save Private key” button
- Passphrase is a kind of password on keys. Select “Yes” if you dont want want any password on ssh keys. If you select no you have to remember this password all the times.
- Now we need a client application (Winscp or Filezilla or another you like). I download the Winscp form the link below. If you like, you can down load from here as well