Skip to content

Glab can not find Gitlab instance in case of gitlab_ssh_host setting

Problem to solve

Our company Gitlab is running behind a reverse proxy. The git-ssh-connection is a direct connection to the Gitlab host. So the hostname for https to the Gitlab instance differs from ssh hostname. Our admin configured gitlab_ssh_host that the UI displays two different urls. Everything is working fine.

But: If I auth against the correct Gitlab instance URL but check out a git repo via ssh glab is not able to match the other hostname to the stored credentials:

$ glab issue list
none of the git remotes configured for this repository points to a known GitLab host. Please use `glab auth login` to authenticate and configure a new host for glab

Proposal

May be auth command can find out the alternative hostname for SSH or I can manual defined an alias.

Further details

I'm not able to perform a auth against the direct ssh host.

Links / references

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information