http://chuansong.me/n/2629774
Symptoms of the problem: The gitlab placed by ssh looks different from others. Everyone else's is like this, and the military brother's family is like this! Such! Such!
Brother Jun's "goddess" is like the picture below,
but other people's goddesses are like the picture below!
See the difference between the two? See it? See it?
solve:
Finally, I tried to search the ssh_port keyword of the configuration file and found this problem!
The configuration after modifying the port The configuration
when the port is not modified
Steps
1. Modify the Port in sshd_config
service sshd restart
2. Modify /etc/gitlab/gitlab.rb [Again, the configuration in gitlab.yml will be overwritten by this]
启用下面这行,并把端口改为自己服务器的sshd端口
gitlab_rails['gitlab_shell_ssh_port'] = 50022
3. Make it effective, great credit to it!
gitlab-ctl reconfigure