2013-05-17 128 views
2

我的gitlab服务器在重定向80和22端口的路由器下。服务器有内部IP地址,路由器有公共地址。当我做混帐克隆gitlab @域名:用户/ example.git我得到gitlab连接被拒绝 - 连接(2)(Errno :: ECONNREFUSED)

Warning: Permanently added 'domainname' (RSA) to the list of known hosts. 
/usr/local/lib/ruby/1.9.1/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) 
    from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `open' 
    from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `block in connect' 
    from /usr/local/lib/ruby/1.9.1/timeout.rb:54:in `timeout' 
    from /usr/local/lib/ruby/1.9.1/timeout.rb:99:in `timeout' 
    from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `connect' 
    from /usr/local/lib/ruby/1.9.1/net/http.rb:755:in `do_start' 
    from /usr/local/lib/ruby/1.9.1/net/http.rb:744:in `start' 
    from /home/git/gitlab-shell/lib/gitlab_net.rb:56:in `get' 
    from /home/git/gitlab-shell/lib/gitlab_net.rb:17:in `allowed?' 
    from /home/git/gitlab-shell/lib/gitlab_shell.rb:51:in `validate_access' 
    from /home/git/gitlab-shell/lib/gitlab_shell.rb:21:in `exec' 
    from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>' 
fatal: The remote end hung up unexpectedly 

然而,当我加入127.0.0.1 domainname到/ etc/hosts中的一切工作正常。这是正常的吗?这可以创建哪些安全问题?

回答

0

需要转发的其他端口之一是443.你可以试试吗?

TJR

+0

我会尝试 – Aitvaras

+0

433被转发,但问题仍然存在。 – Aitvaras

+0

请不要感到侮辱:在默认设置下,gitlab依靠基于ssh-key的身份验证。你能确定你已经添加了你连接的客户端的ssh-key吗? – TJR

相关问题