How to push to heroku behind a proxy?

前端 未结 2 434
时光说笑
时光说笑 2021-01-13 06:05

I am using git behind a proxy server at my university. While trying to execute

git push heroku master

I get an error

ssh: c         


        
相关标签:
2条回答
  • 2021-01-13 06:30

    Heroku only supports git pushes over SSH (port 22) - it's likely that your university is preventing outbound port 22 access which causes your push to fail.

    0 讨论(0)
  • 2021-01-13 06:33

    Corkscrew is a tool for tunneling SSH through HTTP proxies

    Setting up Corkscrew with SSH/OpenSSH is very simple. Adding the following line to your ~/.ssh/config file will usually do the trick (replace proxy.example.com and 8080 with correct values):

    ProxyCommand /usr/local/bin/corkscrew proxy.example.com 8080 %h %p
    

    Follow http://www.agroman.net/corkscrew/README

    0 讨论(0)
提交回复
热议问题