2012-10-16 45 views
2

Possible Duplicate:
How to push to heroku behind a proxy?git push heroku高手。錯誤behid代理

我有我的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:[email protected]:port有助於爲$ git clone。 但不適用於git push

我曾嘗試:

ssh-keygen -t rsa heroku 
keys:add 

它並沒有幫助。

我無法更新git_configheroku_config - 權限被拒絕!

請幫忙!謝謝!

+0

做得好設置環境變量。這將對HTTP遙控器的推拉起作用,但它不適用於Heroku等ssh遙控器。如果Heroku像GitHub那樣通過HTTPS暴露存儲庫,將會有所幫助。 –

回答

1

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 
+0

非常感謝!我也發現了這個Artticle。但是我只有ssh_config文件是隻讀的,所以我不能替換Proxy-Default。 –

+0

現在我已經安裝了Corkscrew。但不幸的是,它並沒有幫助:'不能建立連接到代理:網絡無法訪問 ssh_exchange_identification:由遠程主機關閉的連接 致命:遠程端意外掛斷# –

+0

可以請你幫我 - http:// stackoverflow .COM /問題/ 21600830/SSH-ING到遠程服務器從隱藏-A-代理 – whatf