proxy - 如何在代理后面推送到heroku?

标签 proxy heroku

我在大学的代理服务器后面使用 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

关注http://www.agroman.net/corkscrew/README

关于proxy - 如何在代理后面推送到heroku?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9648559/

相关文章:

Android Studio Gradle Sync 因公司代理 : unable to find valid certification path 而失败

ruby-on-rails - 在 Puma 中,如何计算数据库连接?

javascript - Heroku文件上传和node.js

http - 如何在 Python3 中使用 HTTP 代理?

javascript - ES6 代理的主要用例

heroku - 为 Heroku dynos 选择 EC2 区域?

ruby-on-rails - Heroku SSL EndPoint——更新证书给出内部服务器错误

ruby-on-rails - Heroku Postgres 错误:PGError:错误:关系 "organizations"不存在(ActiveRecord::StatementInvalid)

c# - Windows Phone 7 中的 HttpWebRequest.Proxy?

javascript - 如何在 Wakanda 中使用 Node Worker