Support of custom SSH ports
Hello,
We can't use pull mirrors with custom ssh server port, could we help with that ? Any advice ?
Thank you.
@slimit what URL format are you trying to use ?
Format like:
ssh://[email protected]:2222/Salamek/gitlab-tools.git (Where 2222 is custom port number)
Is not working ?
@Salamek: ssh://[email protected]:2222:some/path.git
Yes it is not working like that format, I thought this was a known issue so I will check again.
Hi, I'm confirming this issue when pushing to a remote mirror. We're using port 9222 on our legacy server for SSH, and I tried setting up a push mirror with url ssh://[email protected]:9222/gitroot/foo/bar.git but I'm getting:
2:Fetching remote remote_mirror_ec60cd9741ab084076908ff172e741c8 failed: ssh: Could not resolve hostname myserver.blah.com:9222: Temporary failure in name resolution
@slimit you are using incorrect url BAD:
ssh://[email protected]:2222:some/path.git
GOOD:
ssh://[email protected]:2222/some/path.git
@neyrick Push mirror is supported in GitLab since 10.8 version... do you have any reason to use GitlabTools push mirror functionality instead of GitLab one ?
Fixed in https://github.com/Salamek/gitlab-tools/commit/ccf0fc8ffc209a5fc32535d085ec9e2d1e3af4d8