Git push origin master: ERROR: Disabled: no authentication methods available

I read GitHub questions here in quite some detail, but could not find the key to my problem. I created a new git repository, and now I'm trying to push it to GitHub:

git remote add origin git@github.com :clergyman/first_app.git git push origin master 

I get:

 FATAL ERROR: Disconnected: No supported authentication methods available fatal: The remote end hung up unexpectedly 

ssh git@github.com works great.
I am running 32 bit windows 7.
GitHub’s global settings are great too. Any ideas?

+7
source share
6 answers

The solution somehow changes the default ssh client for git from pegeant to openSsh. For example. reinstall git and check openSSH in the appropriate window (not pegeant or something else) if you just installed git and haven't started working with it yet.

+5
source

I came across the same error message trying to get Git, Git extensions and GitHub working with 64-bit Windows 7. I was able to solve the problem by continuing to use Putty.

I created a .profile file in C: \ Users \ MyUserName with the following contents:

 GIT_SSH="/c/Program Files (x86)/Git/bin/ssh.exe" 

I had to use "touch.profile" in Git bash to create the file, as the Windows GUI punishes you for trying to create files starting from the period.

You can not take a loan. I just put windows on the answer provided here .

+5
source

When I select plink.exe for authentication, here are my steps

  • use "puttygen.exe" to generate public and private keys and save the private key in the putty private key file format (filename.ppk).
  • Insert the public key generated by "puttygen.exe" into your github account setup.
  • Run pageant.exe (Putty authentication agent) and add the private key generated in step 1.
+5
source

Can the "No Supported Authentication Methods" section on GitHub at all?

You should know the GIT_SSH environment variable that git uses to find your ssh-speaking client if ssh does not work for you.
To perform git authentication, plink.exe can be used (via GIT_SSH ).
If so, make sure you have pageant.exe running and the key you created for the downloaded github. This gives the key to plink.exe ; without it, the error above will occur.

See this post for a longer discussion.

+2
source

Have you configured your ssh keys on github correctly?

You need to create an ssh key and put your public key in github. Two top links:

http://help.github.com/mac-set-up-git/

and

http://help.github.com/ssh-issues/

0
source

My colleague has this error today using TortoiseGit. He inadvertently moved his Putty private key file (myprivatekey.ppk) to another folder. Therefore, make sure the path to your private key file is correct. In TortoiseGit, go to Settings ... Git ... Remote. See the screenshot below:

enter image description here

0
source

All Articles