Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push origin master: ERROR: Disconnected: No supported authentication methods available

Tags:

git

github

I have read the GitHub questions here rather thoroughly, but couldn't find the clue to my problem. I have created new git repo and now I'm trying to push it to GitHub:

git remote add origin [email protected]: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 [email protected] works fine.
I'm running on 32 bits windows 7.
GitHub global settings are fine too. Any ideas?

like image 452
Clergyman Avatar asked Jul 20 '11 07:07

Clergyman


1 Answers

I ran into 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 while 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"

Had to use "touch .profile" within git bash to create the file since Windows GUI chastises you for trying to create files starting with period.

Can't take credit. I just put a windows spin on the answer provided here.

like image 147
kemida Avatar answered Sep 21 '22 02:09

kemida