Push to heroku through a proxy server

I installed Heroku and installed an account, but I canโ€™t click on the code for my application on it, because of the proxy at my university.

I tried using the solution indicated in this one and I read this page on how to get github to work through a proxy, but I still get the error message:

$git push heroku origin ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly $git remote -v heroku git_heroku:secret-hamlet-7718.git (fetch) heroku git_heroku:secret-hamlet-7718.git (push) origin https://github.com/saasbook/hw2_rottenpotatoes.git (fetch) origin https://github.com/saasbook/hw2_rottenpotatoes.git (push) 

My .ssh / config file contains:

 ProxyCommand corkscrew [proxy_address] [proxy_port] %h %p Host git_heroku Hostname heroku.com User git Port 443 

The corresponding part of the .git / config file is:

 [remote "heroku"] url = git_heroku:secret-hamlet-7718.git fetch = +refs/heads/*:refs/remotes/heroku/* 

I'm sure I missed something. Hope someone can point that out.

+7
source share
2 answers

Does your [remote "heroku"] this help?

 [remote "heroku"] url = git@heroku :secret-hamlet-7718.git fetch = +refs/heads/*:refs/remotes/heroku/* 
+1
source

You can try and put ProxyCommand in the Host section:

 Host git_heroku Hostname heroku.com User git ProxyCommand corkscrew 10.3.100.211 8080 %h %p Port 443 
0
source

All Articles