Thursday, 15 March 2012

git - Push to Github Fails under Windows -



git - Push to Github Fails under Windows -

i unable force github windows (dos) command prompt bash worked.

if ran git force origin master got:

permission denied (publickey). fatal: not read remote repository. please create sure have right access rights , repository exists.

if ran ssh-add got:

could not open connection authentication agent.

everything worked fine under bash (msysgit) - how be?

the solution realise ssh (under windows) looking files called id_rsa in %useprofile%\.ssh folder files there names github_rsa.

solution:

rename %userprofile%\.ssh\github_rsa id_rsa rename %userprofile%\.ssh\github_rsa.pub id_rsa.pub

hey presto, pushing , pulling works without entering bash!

possible explanation: previous install of github windows generated github_rsa files.

weirdly, after rename git push still works under bash!

git github ssh

No comments:

Post a Comment