We created a EC2 Instance and install Gitlab, after that we created an Application Load Balancer, we configure it with a subdomain over HTTPS, all works fine, we created a new repositorie, add our ssh-keys, if we clone the HTTPS its all ok, but over SSH we can't clone it for this error:
`ssh: connect to host gitlab.our.subdomain port 22: Connection refused`


```
git clone [email protected]:ucrea/ucrea_portal.git
Cloning into 'ucrea_portal'...
ssh: connect to host gitlab.realhost.cloud port 22: Connection refused
```
Clone de project over SSH
```
git clone [email protected]:ucrea/ucrea_portal.git
Cloning into 'ucrea_portal'...
ssh: connect to host gitlab.our.dubdomain port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic
```
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================================================-===================================-===================================-==============================================================================================================================
ii gitlab-ce 11.3.4-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis)
un gitlab-ee <none> <none> (no description available)
```
@Ulises Use a classic elastic load balancer allowing ingress ports 80, 22 with security groups.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With