Wrong SSH clone URL

Hello there,

We have the SSH on a non-standart port (let it be 12345). On a project page I see the clone URL in the given format:
git@gitlab.example.com:somegroup/someproject.git

But I would like to have something like this:
ssh://git@gitlab.example.com:12345/somegroup/someproject.git

Do I have any way to do resolve this issue?
Thanks!

Hi @vlad4242,

I have a similar situation, and the format ssh://git@gitlab.example.com:12345/somegroup/someproject.git works.

@alexk
Hello,
Thank you for your answer!

Yes, I know it works, but I would like to have this URL in the “clone” input of my repos:

2020-01-16_16-24-47

But I didn’t find where can I configure it.

You can configure this by changing one line in your Gitlab configuration file (gitlab.rb).
Find this line gitlab_rails['gitlab_shell_ssh_port'] = xxx and set xxx to the port you want displayed.

2 Likes

@arrys Thanks a lot! I did and it’s correct now.