I have the following error:
ssh: connect to host git.limeworks.eu port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Now, the configuration I have in my local .ssh/config file is:
host limeworks
user git
port 6565
hostname git.limeworks.eu;
and in the remote gitlab.yml:
gitlab:
## Web server settings
host: git.limeworks.eu
port: 6565
Also, here's the nginx setup (/sites-enabled/gitlab):
server {
listen 80; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name git.limeworks.eu; # e.g., server_name source.example.com;
...
I have restarted the gitlab and nginx services after each modification, yet nothing works!
Edit: Also worth noting here are some snippets from sshd_config of the remote server
Port 9595
AllowUsers rrw git