When generating key pair with gitbash ssh-keygen
, public key file content looks like
ssh-rsa AAA...== myemail@exmaple.com
which is successfully imported to git ssh keys, but private key can't be used with pageant.
When generating key pair with PuTTYgen
, public key file content looks like
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20171213"
AA...==
---- END SSH2 PUBLIC KEY ----
which can't be imported to git ssh key, because of expected format, but private key can be used with pageant.
Is there a way of generating keypair with either tool (ssh-keygen
or PuTTYgen
) to work on both ends (git
and pageant
) from the get go, without altering file content?