Reputation: 11070
I tried deploying my first heroku code, but when I run git push heroku master
, i get an error as:
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git remote -v
gives,
heroku [email protected]:dry-stream-5959.git (fetch)
heroku [email protected]:dry-stream-5959.git (push)
what is the problem?why wont the code be deployed?
Upvotes: 0
Views: 1303
Reputation: 908
It is usually usefull to make a:
ssh -vvv yourlogin@heroku
in order to dispay all the operations taking place during the ssh communication.
Various causes can be at the origin of these,
See also answer:// Unable to Git-push master to Github
Upvotes: 0
Reputation: 1324248
I find strange that a git push heroku master
references "github.com
".
If you have to push to heorku.com, try a:
git remote set-url heroku [email protected]:dry-stream-5959.git
Then repeat your git push
.
If the problem persists, and ssh port is blocked, then followed the aforementioned link, but replacing github.com
by heroku.com
.
Upvotes: 2
Reputation: 158
SSH is probably blocked on port 22.
Check out this answer, it might help you out.
Upvotes: 0