如何推送到代理后面的heroku? [英] How to push to heroku behind a proxy?

查看:97
本文介绍了如何推送到代理后面的heroku?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的大学使用代理服务器后面的git。试图执行

  git push heroku master 

我得到一个错误

  ssh:连接到主机proxy.heroku.com端口22:错误的文件编号
致命:远程终端意外挂起

我有一个类似的早些时候推送git时遇到了问题,但这是通过使用智能HTTP解决的。从我目前阅读的内容来看,这似乎是一个网络问题。我该如何解决?有什么办法使用HTTP推送到heroku吗? (我猜通过SSH推送导致这个问题,并且端口22被阻止)。解决方案Heroku只支持git pushes通过SSH(端口22) - 很可能您的大学阻止了出站端口22的访问,导致您的推送失败。


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

git push heroku master

I get an error

ssh: connect to host proxy.heroku.com port 22: Bad file number
fatal: The remote end hung up unexpectedly

I had a similar problem when pushing to git earlier, but that was solved using their smart HTTP. From what I've read so far, it seems to be a network problem. How do I fix this? Is there any way to push to heroku using HTTP? (I'm guessing pushing through SSH is causing this problem and that the port 22 is blocked)

解决方案

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.

这篇关于如何推送到代理后面的heroku?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆