Marc's technische pagina's

I had some trouble finding a web page that explains the configuration of SSH between a Windows XP client and a Linux server. As an 'SSH dummy' I searched the Internet and combined information with the result that I succeeded. This is how i did it:

From the linux prompt, create the ssh server and client key with the following command:

- ssh-keygen -t rsa (just hit enter to get through passphrase, etc).

This creates a id_rsa and a id_rsa.pub file. Rename id_rsa.pub to authorized_keys and put the file in the following directory on you linux host:

$HOME/.ssh. If the directory .ssh does not exist, you will have to create it first.

Due to security reasns, change the security settings of this file with the following command:

chmod 400 * $HOME/.ssh/authorized_keys

This ensures you that no unauthorized user can het access to the key file.

On the client side I use Windows XP. To access the Linux server is use the application Putty (freeware). First the client key needs to be converted to a format that Putty requires. We do that with PuttyGen. See below the screen that comes wity PuttyGen:

convert the id_rsa file with PuttyGen to a Putty key format: "load" function, save as private key. Then configure a Putty session using this key. PuttyGen will prompt that the key will be converted.

Configure Putty as follows:

- select the SSH protocol and fill in the hostname (or IP adress) of your Linux machine.

Fill in the details of the just converted private SSH key as follows:

Fill in the location of the private key and the SSH connection is finished. Good luck!