Aswin Murugesh
Aswin Murugesh

Reputation: 11070

Heroku app cannot be pushed

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

Answers (3)

Harshit Agarwal
Harshit Agarwal

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,

  • from a $HOME not correctly defined (usual on Windows where the environment variable %HOME% isn't defined at all by default)
  • to an IP conflict address (see this thread) for the SSH daemon.

See also answer:// Unable to Git-push master to Github

Upvotes: 0

VonC
VonC

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

Quine
Quine

Reputation: 158

SSH is probably blocked on port 22.

Check out this answer, it might help you out.

Upvotes: 0

Related Questions