git Push Heroku 大师。代理背后的错误

标签 git heroku ssh proxy

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_configheroku_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/

相关文章:

node.js - Angular 5 部署到 Heroku 失败并出现应用程序错误 H10

Git 通过 http 但不是 ssh 工作

linux - ssh_exchange_identification : read: Connection reset by peer; ubuntu in Docker

git - 如何从现有目录结构生成 git superproject

maven - Jetty 清理 session 错误与 View 范围的 bean

java - Git 新手,Git gui 似乎已将所有 mydocuments 添加到主存储库

mysql - Heroku 为什么使用 Postgresql?

linux - 当用户使用 ssh 身份作为共享用户登录时,我可以审核 Linux 系统上的用户事件吗?

GitHub:如何对超过 1500 行的新文件进行代码审查

git - 如何使用android studio更改git存储库