Omnibus Gitlab - ssh connection refused

Hi folks,

I have hosted Gitlab solutions on AWS. My gitlab servers are running behind ELB. I am trying to clone the repo first time over SSH and getting connection refused error. I have also opened up SSH port in ELB SG. Also, added the following in ~/.ssh/config file.

  Preferredauthentications publickey
  IdentityFile ~/.ssh/example_com_rsa

Can you please guide me what is wrong with my SSH connection?

do you use “User git” in your ssh config (or your command)? Gitlab uses a general git user and recognizes the user according to the ssh key.

1 Like

I am using “git” as a user; however, I have SSH key configured with different user name

you can try to directly login with ssh, that should give you a “Welcome to GitLab, $USERNAME” reply and directly close the connection.
That, at least, is a bit faster and direct to test (so you can change port or other variables) your connection.

1 Like