You won't be able to directly use your PuTTY
's key in Linux
's OpenSSH
because the keys are of different format.
You'll need to first convert PuTTY
's key to OpenSSH
's key format to be able to use the key.
You can convert PuTTY Private Key
(ppk
) file to OpenSSH
private key using PuTTY Key Generator
(PuTTYGen
).
PuTTYGen
(puttygen.exe
) from the official website and launch the program. https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Load
button on PuTTYGen
's main interface. PuTTY
's private key file which normally ends with .ppk
extension and click on the Open
button.OK
. Conversions → Export OpenSSH key
from the menu.
There's an old and new types of SSH
key file format and will be automatically be determined based on the key's type except if you choose Export OpenSSH key (force new file format)
.
OpenSSH
private key and click on the save button. Comment anonymously. Login not required.