Generate OpenSSH rsa ssh key pair
Windows
1. Open the Command prompt
2. Generate ssh key pair (private and public SSH keys with rsa algorithm ) with the following command
ssh-keygen -t rsa
3. You can see the ssh key pair under %userprofile%\.ssh\
Command to see the files
cd %userprofile%\.ssh
dir
Linux
1. Generate ssh key pair (private and public SSH keys with rsa algorithm ) with the following command
ssh-keygen -t rsa
3. You can see the ssh key pair under ~/.ssh/
Command to see the files
ls -ltra ~/.ssh
Tools like PuTTY or WinSCP do not support OpenSSH's OpenSSH Private Key Format.
You need to convert your OpenSSH's keys to a .ppk(PuTTY Private Key) to use the same key with PuTTY or WinSCP.
Convert your OpenSSH private key to ppk format
Prerequisites: Installed PuTTY.
Windows
1. Open PuTTYgen (GUI)
2. Load the private ssh key (id_rsa) from .ssh directory.
This directory is generated automatically during the process described in the section "Generate OpenSSH key pair"
3. Save the private key with the name id_rsa.ppk to .ssh directory.
Linux
Execute the following comand
puttygen ~/.ssh/id_rsa -o ~/.ssh/id_rsa.ppk