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

前端 未结 23 1552
情深已故
情深已故 2020-11-28 01:09

I have followed these instructions below to upload a project.

Global setup:

 Download and install Git
  git config --global user.name \"Your Name\"
         


        
相关标签:
23条回答
  • 2020-11-28 01:33

    My problem was that it didn't work with a passphrase on my private key.

    Hope that helps someone.

    0 讨论(0)
  • 2020-11-28 01:35

    Use ubuntu on windows store

    windows subsystem for linux

    , your git push will work across different accounts.

    0 讨论(0)
  • 2020-11-28 01:39

    I faced a similar issue when running SSH or Git Clone in Windows. Following findings helps to solve my problem:

    • When you run “rhc setup” or other ssh methods to generate ssh key, it will create the private key file id_rsa in .ssh folder in your home folder, default is C:\User\UserID
    • Git for windows has its own .ssh folder in its installation directory. When you run git/ssh, it will look for private key file id_rsa in this folder
    • Solved the problem by copying id_rsa from the home folder .ssh folder to the .ssh folder in the git installation directory

    Also, I think there a way to “tell” git to use the default .ssh folder in home folder but still need to figure out how.

    0 讨论(0)
  • 2020-11-28 01:39

    I also have this problem today. The solution is setting your "ssh key". Click the url below, follow the steps, then you will sovle it.

    http://github.com/guides/providing-your-ssh-key

    0 讨论(0)
  • 2020-11-28 01:39

    I had the same issue on windows. I switched from SSH to HTTPS and ran a Git PUSH.

    git push -u origin master
    Username for 'https://github.com': <Github login email>
    Password for <Github login>: xxx
    

    Successful! hope this helps.

    0 讨论(0)
  • 2020-11-28 01:40

    If you are using a linux machine then check,

    • do you have Openssh installed
    • if you do, then do you have an existing public key otherwise you'll have to generate one.
    • is your public key added to your github account.

    Generating new SSH keys and adding them to my Github account solved my problem. You can look into this page for more details. GitHelp.

    0 讨论(0)
提交回复
热议问题