Git
Heroku
bitbucket

herokuのdeployの時にpermission deniedで弾かれた時の対処法

git push heroku master
を実行したとき下記のエラーが発生

deployのerror
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts.
git@heroku.com: Permission denied (publickey).
fatal: Could not read from remote repository.

下記でWarningが出るものの解決できた。

heroku keys:add ~/.ssh/id_rsa.pub