【问题标题】:git push heroku master. Error behid a Proxy [duplicate]git push heroku 大师。代理背后的错误[重复]
【发布时间】:2012-10-18 05:39:44
【问题描述】:

可能重复:
How to push to heroku behind a proxy?

我在我的 Win7 上安装了带有 Ubuntu 的 Oracle VM 代理。我使用 git。我尝试在 Heroku 中部署,但出现错误:

$ git push heroku master 
ssh: connect to host heroku.com port 22: Connection timed 
out fatal: The remote end hung up unexpectedly

export http_proxy=http://proxyuser:proxypass@proxy:port 帮助了$ git clone。 但不适用于git push

我试过了:

ssh-keygen -t rsa heroku 
keys:add 

没用。

我无法更新 git_configheroku_config - 权限被拒绝!

请帮忙!谢谢!

【问题讨论】:

  • 很好地设置了环境变量。这将适用于从 HTTP 远程推送和拉取,但它不适用于 ssh 远程,例如 Heroku。如果 Heroku 像 GitHub 那样通过 HTTPS 公开存储库会很有帮助。

标签: git heroku ssh proxy


【解决方案1】:

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

Corkscrew 是一种通过 HTTP 代理建立 SSH 隧道的工具

使用 SSH/OpenSSH 设置 Corkscrew 非常简单。添加 您的 ~/.ssh/config 文件的以下行通常会执行 诀窍(用正确的值替换 proxy.example.com 和 8080):

ProxyCommand /usr/local/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth

您需要创建一个文件myauth,其中包含您的用户名和密码 形式为:

username:password

【讨论】:

  • 非常感谢!我也找到了这篇文章。但是我的 ssh_config 文件是只读的,所以我无法替换 Proxy-Default。
  • 现在我已经安装了开瓶器。但不幸的是它没有帮助:Couldn't establish connection to proxy: Network is unreachable ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-02-03
  • 2016-12-26
  • 1970-01-01
  • 1970-01-01
  • 2016-02-19
  • 1970-01-01
相关资源
最近更新 更多