Git and ssh authorizating

前端 未结 9 1807
有刺的猬
有刺的猬 2021-02-02 02:13

I can\'t login to github with generated ssh-keys. I\'ve followed this manual: http://help.github.com/linux-key-setup but at step:

ssh git@github.com

<
9条回答
  •  别那么骄傲
    2021-02-02 02:52

    I was able to get gitlab working thanks to this thread (I know that's not github).

    I too found the answer by @jamesw to be correct.

    I ended up having to delete my known_hosts file and recreate my ssh key with the same password as my gitlab account.

    Then I did the ssh-add and did a git push -u origin master. Success!

    Thanks for the help everyone.

    UPDATE:
    I decided to remake my ssh key without a password and ran into this error again.

    This time, I was able to copy my old known_hosts to the new .ssh/ and simply run the ssh-add.

提交回复
热议问题