Fatal: The remote end hung up unexpectedly

14,526

You've probably not added a public key to your SSH keys. Do that:

$ ssh-keygen -t rsa

Copy the created public key (id_rsa.pub) to your account's list of SSH keys, then try pushing again.


See the relevant help page: Generating SSH Keys for a more in-depth response.

Share:
14,526
szatan
Author by

szatan

I am an independent artist looking for a major goal of an existance. I'am a slave of curiosity. Please to meet you! Hope you gues my name!.

Updated on June 15, 2022

Comments

  • szatan
    szatan almost 2 years

    I am working through the "Try Git" tutorial.

    When I get to the chapter "1.11 Pushing Remotely", and try to run:

    $ git push -u orgin master
    

    I get this error:

    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly
    

    Any ideas?