# Configuring SSH port of self-hosted Gitlab

**URL:** <https://discuss.bitrise.io/t/configuring-ssh-port-of-self-hosted-gitlab/11315>\
**Category:** Question & Answer\
**Tags:** gitlab-self-hosted\
**Created:** [December 11, 2019, 5:13pm UTC](https://discuss.bitrise.io/t/configuring-ssh-port-of-self-hosted-gitlab/11315 "2019-12-11T17:13:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisbjr](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/chrisbjr/32/2691_2.png) [@chrisbjr](https://discuss.bitrise.io/u/chrisbjr)\
**Post date:** [December 11, 2019, 5:13pm UTC](https://discuss.bitrise.io/t/configuring-ssh-port-of-self-hosted-gitlab/11315/1 "2019-12-11T17:13:28Z")

</div>

Hi, we have a self-hosted Gitlab connected to our account in Bitrise. Unfortunately, when we add a project through Bitrise and choose among the repositories from our Gitlab repo, it assumes we use port 22.

Is there a way we can configure this to another port?

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [January 7, 2020, 9:46am UTC](https://discuss.bitrise.io/t/configuring-ssh-port-of-self-hosted-gitlab/11315/2 "2020-01-07T09:46:55Z")

</div>

Hi @chrisbjr!

I just wanted to make sure we address your question publicly as well here,

What we think you should do essentially, is make sure that all references to your server address in your configuration are specifying the port. So instead of `git@192.168.0.1` it would be `git@192.168.0.1:port_number` . This syntax should be supported by the SSH client according to the SSH manpage [http://man.openbsd.org/ssh](http://man.openbsd.org/ssh)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 6, 2020, 9:46am UTC](https://discuss.bitrise.io/t/configuring-ssh-port-of-self-hosted-gitlab/11315/3 "2020-02-06T09:46:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
