我刚刚通过综合在运行 Ubuntu 14.0.4 LTS 的 VPS 上安装了 GitLab CE,对以下内容进行了更改/etc/gitlab/gitlab.rb并重新运行sudo gitlab-ctl reconfigure:
gitlab_workhorse['listen_network'] = "tcp"
gitlab_workhorse['listen_addr'] = "127.0.0.1:8181"
external_url 'https://gitlab.myserver.com/'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
web_server['external_users'] = ['www-data']
nginx['enable'] = false
Run Code Online (Sandbox Code Playgroud)
我的 Apache VirtualHost 配置正在运行,我可以访问 Web 界面https://gitlab.myserver.com/,在那里我已经添加了我的 SSH 密钥,但是当克隆/推送/etc 到或从ssh://git@gitlab.myserver.com:2222/mygroup/myproject.git我收到
ssh: connect to host gitlab.haggi.me port 2222: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
$ ssh -vvv -T -p 2222 …