2
$ heroku keys:add
Found existing public key: C:/Users/Andre/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Andre/.ssh/github_rsa.pub... done
Andre@ANDREH /c/Unisinos/Desenvolvimento de Software/unidemico (master)
$ git push heroku master
Permission denied (publickey).
fatal: Could not read from remote repository.

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

なぜこのエラーが発生するのですか? github_rsa.pub ファイルに公開鍵があります... また、https: //dashboard.heroku.com/apps/XXXApp/settings で公開鍵を設定します

助けてください

4

2 に答える 2

2

次のコマンドを実行して、現在キー チェーンにある ssh キーを一覧表示してみてください。

ssh-add -l

次のように表示されます。

2048 3c:a8:e1:...:f7 /Users/.../.ssh/github_rsa (RSA)

そうでない場合は、キーが読み込まれていないことを意味します。行う:

ssh-add ~/.ssh/github_rsa

その後、動作するはずです

git push heroku master
于 2013-08-15T18:43:33.870 に答える
0

Pierre-Louis Gottfrois のコメントが役に立ちました。id_rsa.pub が適切に作成されていませんでしたが、今では正常に動作しています!

于 2013-08-17T21:15:05.690 に答える