3

I am trying to push my local git repository to heroku using the following command (this is on a Windows 7 machine):

git push heroku master

However this brings up a popup showing the following error:

PuTTY Fatal Error
No supported authentication methods available (server sent: publickey)

I am wondering how PuTTY even comes into play here. Yes, I do have PuTTY installed on the machine, but the git command above should be simply reading my key from ~/.ssh directory where it is stored.

Naresh
  • 23,937
  • 33
  • 132
  • 204
  • possible duplicate of [(git bash) push to bitbucket ignores SSH key](http://stackoverflow.com/questions/17307154/git-bash-push-to-bitbucket-ignores-ssh-key) – legoscia Jun 28 '13 at 18:47
  • Is it as in http://stackoverflow.com/a/7726603/6309 ? – VonC Jun 28 '13 at 18:48
  • 1
    These are indeed duplicates and answer my question. They were difficult to find though. – Naresh Jun 28 '13 at 21:36
  • possible duplicate of [github: No supported authentication methods available](http://stackoverflow.com/questions/3431314/github-no-supported-authentication-methods-available) – Chronial Jul 03 '13 at 07:58

1 Answers1

5

is it possible you have the environment variable GIT_SSH set?

n.b.: if you have installed TortoiseGIT, you can answer that question with "yes".

So, if you have GIT_SSH set, you can fix your issue in several ways:

  • add your key to plink / pageant
  • set GIT_SSH to use your preffered (Open)SSH

For a lengthy explanation, read http://guides.beanstalkapp.com/version-control/git-on-windows.html

mnagel
  • 6,729
  • 4
  • 31
  • 66