SSH Private Key Permissions using Git GUI or ssh-keygen are too open

前端 未结 25 1837
说谎
说谎 2020-12-07 06:57

Recently I\'ve been unable to clone or push to github, and I\'m trying to find the root cause.

This is on windows

I have cygwin + git as well as msy

25条回答
  •  清歌不尽
    2020-12-07 07:35

    I was able to fix this by doing two things, though you may not have to do step 1.

    1. copy from cygwin ssh.exe and all cyg*.dll into Git's bin directory (this may not be necessary but it is a step I took but this alone did not fix things)

    2. follow the steps from: http://zylstra.wordpress.com/2008/08/29/overcome-herokus-permission-denied-publickey-problem/

      I added some details to my ~/.ssh/config file:

    Host heroku.com
    Hostname heroku.com
    Port 22
    IdentitiesOnly yes
    IdentityFile ~/.ssh/id_heroku
    TCPKeepAlive yes
    User brandon

    I had to use User as my email address for heroku.com Note: this means you need to create a key, I followed this to create the key and when it prompts for the name of the key, be sure to specify id_heroku http://help.github.com/win-set-up-git/

    1. then add the key:
      heroku keys:add ~/.ssh/id_heroku.pub

提交回复
热议问题