Cloning a Gitlab project with alternate SSH port

Often, when I configure a remote server, I will change the default SSH port to something other than 22. I did this once on a machine where I ran a GitLab instance. Cloning a project securely over SSH will no longer work using the default resource link generated by GitLab.


As the above resource will assume port 22, when cloning it in an IDE like Intellij, an error will be thrown.

The solution requires a small tweak to the original resource link:


Explicating the SSH protocol at the start, and adding the port, will allow Intellij to resolve the resource and clone the project properly.