Puttygen github key

I had this same problem and figured it after half an hour. I documented it for my reference.

sharing it below - hope this helps someone!

[STEP 1] HOWTO Generate SSH Keys for GitLab with puttygen

  • download & launch puttygen free software for Windows, set the number of bits to 4096 and click GENERATE, provide random seed with mouse movement. n. on puttygen GUI, click 2 buttons to save 2 files: 'public key' & 'private key' n. with Windows Explorer, create a copy of the 'private key' file and name it 'public_key_for_GitLab' n. this private key is in 'combined' format (meaning includes both pub & priv keys), we will have to modify it to contain only the pub key in a certain format
  • [STEP 2] HOWTO Create 'GitLab public SSH Key' from a 'puttygen-generated-private-key-file' SUMMARY what we are trying to achieveh is a single line SSH key in the following format

    EXAMPLE SSH PUB KEY ssh-rsa ZZZZB3NzaC1yc2CCCCCBJQAAAgEAimxzxIY0uXT0pQR/dx9+COE1+NJfKB+XOD2ZdffWB+mPM0yJNY3o1w4xDur7pZkHAIURtxcFo/co4ORlriPdGKnPDjuL/9n3Sh8vLCYDZ1odMe+VFfPfGPmdK1oaDc1hfGzI6vl+sGyIJcvvRhQRexR4JCUzyvgObH75bhx0SjJc8QMKPDsuY+b+CrDpUbiFmSUsmFhYWVPRP9nrCqWy1O8obiIR+frcce5HTVOU9WrZxOVlxAblHu6jzfgRg7z/0wAzIdi0mEq4KWGwnVHYt4GsDJ4VU5hidCOF8qstTrzUpxtNtxW3Wo590pqD9nnCO/3G/iALnTVb2V/twzPJ80w6LKva7Goc+mZGb9nsjgt47S+6j3BuPe4Uy7gRGrX2reTiRfY6WEJJaIww3h2zHiqYQD0i0ztqn0m3UJ1D18FYtaJXscb3UwNTNGgqHtPThpbqe9cbWVgv4EOppMiq4bDqqfG8xaUQxXCIb1zaK+rSlj5susJxEhviLZF9evQFlAtlDScuxRmeBnQFD3i0fjHefMlidUhjwoEQ5zLPrR/00kr1XojxmZUgfjM99X8jAEN6PmZ4mvd87t8MeGcuAL9F76rBEFOjZqlRvkI32dkt8+becHBJHWIqGntTQY+RY13oyD3+VcwbbzDZVMvJIRJJUpEZaRK3En+7Cw7M+fc= my@gitlabprimaryemail.com

    LIST OF ALL MODIFICATIONS apply all these modifications below to your 'public_key_for_GitLab' file

  • remove these lines completely > the PRIVATE KEY lines at the bottom
  • remove this line completely > Encryption: none
  • remove this line completely > Public-Lines: 12
  • remove this line completely > Private-Lines: 28
  • Puttygen online

    Puttygen batch mode

    Puttygen with SSH2

    Puttygen bitbucket

    Puttygen github