Possible Duplicate:
How to push to heroku behind a proxy?
我的 Win7 上有一个代理 Oracle VM 和 Ubuntu。我用的是git。我尝试在Heroku中部署,但变成Error:
$ 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_config
或heroku_config
- 权限被拒绝!
请帮忙!谢谢!
最佳答案
http://www.agroman.net/corkscrew/README
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.work.com 80 %h %p ~/.ssh/myauth
You will need to create a file
myauth
that contains your usename and password in the form of :username:password
关于git Push Heroku 大师。代理背后的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12923293/