Heroku git ssh_exchange_identification problem and solution

If you get following error while you are pushing/pulling changes with Heroku git repository,

ssh_exchange_identification: Connection closed by remote host
It means, your machine is trying to connect ssh over port 443. You can solve this problem by setting default ssh port to 22.In order to do this, open up your ssh config file,
vi /etc/ssh/ssh_config
and set "Port" value to 22 and save it. You are done! You can use git operations now.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s