I running GitLab 7.13.3 from the official repository for Ubuntu 14.04.
Then I’d like to change the SSH host as it’s different from the one for web, so I uncommented the line of gitlab_rails['gitlab_ssh_host']
in /etc/gitlab/gitlab.rb
to fill my SSH host in.
After that, I ran the following series of command:
sudo gitlab-ctl reconfigure
sudo gitlab-rake cache:clear
sudo gitlab-ctl restart
However, the SSH links displayed in the web were still ssh://git@git.domain.com:1234
instead of ssh://git@ssh.domain.com:1234
as I wanted.
I checked the /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
file with finding no mistakes there: the ssh_host
setting under gitlab
section was correctly set to ssh.domain.com
.
Did I do anything wrong? How on earth can I change the host? Please help, thanks.