New to Git: git push origin master = “ssh_exchange_identifiction: Connection closed by remote host. Fatal: The remote end hung up unexpectedly”

后端 未结 5 1318
梦谈多话
梦谈多话 2021-02-10 18:34

I\'m trying out git for the first time and am trying to follow instructions supplied by github. However, I seem to be failing on the last step. The following steps are provide

5条回答
  •  伪装坚强ぢ
    2021-02-10 19:14

    The SSH key on your machine doesn't match the one that you have on record with GitHub. Type

    cat ~/.ssh/id_rsa.pub | pbcopy
    

    which will copy your public key to the clibboard. Then go to GitHub account settings and add it as a new key.

提交回复
热议问题