My remote fetch/push URL for heroku got screwed up. Not sure how, though.
$ git push heroku master ssh: connect to host heroku.com port 22: Operation timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
First verify in Terminal you have the correct remote URL for pushing to heroku, and then change it if necessary:
1. Enter your git folder
2. Check remote URLs
git remote -v
3. Inspect the output
heroku firstname.lastname@example.org:my-heroku-app.git (fetch) heroku email@example.com:my-heroku-app.git (push) origin firstname.lastname@example.org:my-git-username/my-heroku-app.git (fetch) origin email@example.com:my-git-username/my-heroku-app.git (push)
The above is what the output should look like. In my case, the top two lines were formatted as
firstname.lastname@example.org, and when I changed them to
email@example.com it stopped timing out. Heroku was trying to push the git repository to an address where it didn’t exist (or was formatted wrong), and thus timed out in the process.
Hopefully this helps someone else!