0

Windows (DOS) コマンド プロンプトからは github にプッシュできませんでしたが、bash からは機能しました。

私が走った場合、私はgit push origin master得ました:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

私が走った場合、私はssh-add得ました:

Could not open a connection to your authentication agent.

すべてが bash (msysgit) の下で正常に機能しました。

4

1 に答える 1

0

id_rsa解決策は、(Windowsの下で)sshが自分の%USEPROFILE%\.sshフォルダーで呼び出されたファイルを探していたが、そこにあるファイルは名前だったことを認識することでしたgithub_rsa

解決:

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

ちょっと前に、プッシュとプルは bash に入らなくても機能するようになりました!

考えられる説明: Windows 用の github の以前のインストールで、github_rsaファイルが生成されました。

奇妙なことに、名前を変更した後git pushも bash で動作します!

于 2013-02-14T15:59:08.227 に答える