I have a private key private.key)
in format -----BEGIN RSA PRIVATE KEY-----IEpAIBAAKCAQEAvKwuhMiQR/THmjK.....-----END RSA PRIVATE KEY-----
, and I am trying to convert it in the format that putty (.ppk) understands using ssh-keygen command through cygwin, but i am getting a public key instead. Do I need to save the original file (private.key) in any specific format?
I tried saving the (private.key) in .pem format and no extension.
Tried ssh-keygen -t rsa -e -f private.key > privatekey2.ppk
Tried ssh-keygen -t rsa -i -f privatekey2.key
Tried ssh-keygen -p
Expecting the key in below format:
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQCiud9bCgiaSX7ck2Y1orbH3U5+4lsOmAbT
Az361YM3XwX6nLNyPycFkTdYfX75IhUPCT9ywPm4WvEy9B78qL6EoKZctAM/DUZA
7DDJeeK4NWsulN4qDUyWoR50wVJCswgwMLCZPwcXeyed8WpUi2qbi8Di4KJphdtV
HIAeq2pDYaj1HMBtxI2Lrd5DPSt7u28v/twrOksDpSA7DXzRu7AsIKvO/dF9/PR4
WB/cqctC9RPvDK1VWNj+xPFGZ2ylBr0aC3TilbKaou/8S2AmJyp5FOGUEBCUMGWs
P/fQbN0XQX6dQuvfTtYUBf4ZuJKxhPDBKiacUg5YufXdNR3I/JIx
Private-Lines: 14
AAABACLXmqgDG3lxsCypkPJ+DxX3YFXRwL58tcVbxdsd+XUTLxQMlm2pcQEDqW6U
nGnartij2caH5FBhhJCs7a+asAR043oo/yLyhC7lg8K4Ct/3bCYysOkfJN2BzSQh
uqvWarPq0P1XHf0chidx4AxTsLxz0DQ5nG89tXlu4eQRYHq4jdR5Pkr5wWHjYzpX/
o9C3bcgSlKqFVJMnw06eUI6c1STtQAj/Tn+1wLpTS+p3P7kO6oXXwAKU6kOnjbx5
S0u4XUY+ZKTlhrY24zbXhGPliGDyaTL8387AE1cqWAJeWenAlbIxRzy13BQ/8RNe
hpmLaHhCz32d+BFc4Oav3GyxibkAAACBANA8e5hWJOGnbSIugrWrkDGuSTQp1BFi
rYEaxml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