0

Gitlab : ssh connection refused error

i have configured gitlab CE on centos 6.7 and did all basic setups, when i try to push my file' s from Client machine to gitlab server through ssh i got below error.,

ssh: connect to host gitlab.example.co port 22456: Connection refused

fatal: Could not read from remote repository.

Also i swapped ssh default port into 22456, To my bad luck got the same error... please help me to solve this issue........?

gitlab Add a comment
baseer
asked Nov 03 2017

Answer

0

you should also enable ssh port in gitlab configuration file. follow the below steps

# vim /etc/gitlab/gitlab.rb 
gitlab_rails['gitlab_shell_ssh_port'] = 22456
# gitlab-ctl reconfigure
Add a comment
arunkumarak
asked Nov 03 2017
edited Oct 05 2018
Post your Answer