Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.orgGitLab.org
  • clicli
  • Issues
  • #1073

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

  • https://docs.gitlab.com/ee/administration/geo/replication/location_aware_git_url.html#configure-git-clone-urls-to-use-the-special-git-url
Assignee
Assign to
Time tracking