git - GitLab remote repository with a non standard port -


i have following error:

ssh: connect host git.limeworks.eu port 22: connection refused fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

now, configuration have in local .ssh/config file is:

host limeworks     user git     port 6565     hostname git.limeworks.eu; 

and in remote gitlab.yml:

  gitlab:     ## web server settings     host: git.limeworks.eu     port: 6565 

also, here's nginx setup (/sites-enabled/gitlab):

server {   listen 80;         # e.g., listen 192.168.1.1:80; in cases *:80 idea   server_name git.limeworks.eu;     # e.g., server_name source.example.com; ... 

i have restarted gitlab , nginx services after each modification, yet nothing works!

edit: worth noting here snippets sshd_config of remote server

port 9595 allowusers rrw git 

ok , found fix:

  • in gitlab.yml ... under advanced setting there's option change default ssh port
# if use non-standard ssh port need specify ssh_port:9595 
  • save , restart service

make sure have consistency @vonc mentioned


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -