2

我的 gitlab 服务器位于重定向 80 和 22 端口的路由器下。服务器具有内部 IP 地址,路由器具有公共地址。当我做 git clone gitlab@domainname:user/example.git 我得到

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 时,一切正常。这是正常的吗?这会产生哪些安全问题?

4

1 回答 1

0

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

TJR

于 2013-05-18T18:37:07.130 回答