search

Home  >  Q&A  >  body text

git - error when adding ssh key

Hello everyone, I got the following error when adding ssh keys to gitlabs. How to solve it?

Sorry, we were unable to verify the SSH key you entered: ParsePublicKey: Fail to parse public key: exit status 1 - buffer_get_ret: trying to get more bytes 257 than in buffer 29 buffer_get_string_ret: buffer_get failed buffer_get_bignum2_ret: invalid bignum key_from_blob: can't read rsa key key_read: key_from_blob ...

巴扎黑巴扎黑2811 days ago954

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:39:39

    Did you pass the private key in? Use id_rsa.pub instead of id_rsa. Of course, maybe I guessed wrong

    reply
    0
  • Cancelreply