git push heroku master Write failed: Connection re

2019-07-28 18:49发布

问题:

I am getting this error when running this command 'git push heroku master'

Write failed: Connection reset by peer fatal: Could not read from remote repository.

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

I followed the instructions given from heroku site. Here is the link https://devcenter.heroku.com/articles/getting-started-with-rails3

回答1:

Sign into Heroku, click on your app, click on the Access tab, and make sure you're listed as a contributor or owner.

Then configure your SSH keys. https://devcenter.heroku.com/articles/keys