我在大学的代理服务器后面使用 git。在尝试执行时
git push heroku master
我收到错误
ssh: connect to host proxy.heroku.com port 22: Bad file number
fatal: The remote end hung up unexpectedly
我之前推送到 git 时遇到了类似的问题,但使用他们的智能 HTTP 解决了这个问题。从我到目前为止所读到的内容来看,这似乎是一个网络问题。我该如何解决?有没有办法使用HTTP推送到heroku? (我猜测通过 SSH 推送会导致此问题,并且端口 22 被阻止)
最佳答案
Corkscrew是一个通过 HTTP 代理建立 SSH 隧道的工具
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
关于proxy - 如何在代理后面推送到heroku?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9648559/