開発マシンのコマンドプロンプトから下記コマンドを実行して、以下のエラーが発生した場合の対処
開発マシン
OS: Windows 7 Home Premium SP1 x64
git: git Extensions
ssh生成: gitbash
C:\> 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.
gitbash で生成したssh鍵を heroku keys:add で追加した後、
ssh鍵が格納されているディレクトリ C:\Users\%USERNAME%\.ssh
へ、以下の内容でconfigファイルを作成する。
Host heroku.com
User git
port 22
Hostname heroku.com
IdentityFile ~/.ssh/heroku_rsa
TCPKeepAlive yes
IdentitiesOnly yes
※ファイル名はheroku_rsa として作成している。
この状態でローカルマシンのレポジトリの場所まで移動し、git push heroku master
コマンドを実行すると、デプロイに成功した。