gitlab-tools icon indicating copy to clipboard operation
gitlab-tools copied to clipboard

Support of custom SSH ports

Open sbpro86 opened this issue 7 years ago • 4 comments

Hello,

We can't use pull mirrors with custom ssh server port, could we help with that ? Any advice ?

Thank you.

sbpro86 avatar Aug 23 '18 16:08 sbpro86

@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 avatar Aug 23 '18 16:08 Salamek

@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.

sbpro86 avatar Aug 23 '18 16:08 sbpro86

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

neyrick avatar Mar 18 '19 18:03 neyrick

@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 ?

Salamek avatar Mar 19 '19 22:03 Salamek

Fixed in https://github.com/Salamek/gitlab-tools/commit/ccf0fc8ffc209a5fc32535d085ec9e2d1e3af4d8

Salamek avatar Nov 19 '22 04:11 Salamek