在我的研究所,我只能通過代理訪問受限制的Internet。我在建立與gerrit代碼審查系統(git.eclipse.org)的ssh連接時遇到了一些嚴重問題,因此無法將任何新補丁推送到Gerrit。無法通過代理使用開瓶器來建立ssh連接來蝕刻gerrit
爲了執行上述任務,我先用開塞鑽試圖隧道SSH通過HTTP,下面給出here 說明這是我做過什麼:
- 安裝開瓶器
- 新增ProxyCommand到ssh配置
- 新增代理用戶名和代理認證密碼文件 的〜/ .ssh/proxyauth
在此之後,我成功地建立了一個連接到github的ssh,並將更改推送到我的github回購。
但我無法通過ssh連接到gerrit。這是確切的錯誤:
$ssh -p 29418 [email protected]
Proxy could not open connnection to git.eclipse.org: Forbidden
ssh_exchange_identification: Connection closed by remote host
我使用Linux(RHEL 6.3測試版x86_64)和git 1.7.11.1(最新版)。
我的〜/ .ssh /配置的內容是:
Host github.com
Hostname ssh.github.com
Port 443
ProxyCommand corkscrew 202.141.80.22 3128 %h %p ~/.ssh/proxyauth
Host *
ProxyCommand corkscrew 202.141.80.22 3128 %h %p ~/.ssh/proxyauth
詳細(錯誤)結果SSH請求git.eclipse.org是:
penSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /home/jayant/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec corkscrew 202.141.80.22 3128 git.eclipse.org 29418 ~/.ssh/proxyauth
debug1: permanently_drop_suid: 500
debug1: identity file /home/jayant/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/jayant/.ssh/id_rsa type 1
debug1: identity file /home/jayant/.ssh/id_dsa type -1
Proxy could not open connnection to git.eclipse.org: Forbidden
ssh_exchange_identification: Connection closed by remote host
遠程URL中設置我的混帳回購協議是:
$git remote -v
origin http://git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git (fetch)
origin http://git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git (push)
review ssh://[email protected]:29418/etrice/org.eclipse.etrice.git (fetch)
review ssh://[email protected]:29418/etrice/org.eclipse.etrice.git (push)
前幾天,當我有直接上網,我能夠通過ssh連接,也把我的補丁,上述遠程設置。
我試圖刪除known_hosts的內容,但這並沒有幫助。
這是gerrit服務器的問題嗎?
在此先感謝您的幫助。