Modified /etc/gitlab/gitlab.rb
gitlab_rails['gitlab_shell_ssh_port']= 19287
Runsudo gitlab-ctl reconfigure
Restart
Open ssh -T git@192.168.1.40
Returnssh: connect to host 192.168.1.40 port 19287: Connection timed out
What’s the problem?
Do you want to modify the SSHD port?
Done
Modified the sshd_config and iptables files and added the corresponding ports
业精于勤,荒于嬉;行成于思,毁于随。