Skip to content

Instantly share code, notes, and snippets.

@xeptore
Last active December 3, 2022 05:59
Show Gist options
  • Save xeptore/abcb49ef736a7cd5c4373e06e01f990b to your computer and use it in GitHub Desktop.
Save xeptore/abcb49ef736a7cd5c4373e06e01f990b to your computer and use it in GitHub Desktop.
Accessing Self-Managed GitLab

Accessing Self-Managed GitLab

This guide with help you to setup up your environment in order to access the new self-managed GitLab instance accessible at https://git.eways.dev/.

Setup

  1. Install cloudflared

  2. Configure SSH to use cloudflared

    You need append the following lines to your SSH client configuration file:

    Host ssh.eways.dev
        ProxyCommand cloudflared access ssh --hostname %h
    

    On MacOS, and Linux, the file is located at ~/.ssh/config. On Windows, assuming Git is already installed, it should be located at C:\Program Files\Git\etc\ssh\ssh_config, or C:\Users\[User]\.ssh\config. See the following threads for more details:

    If you encountered errors related to cloudflared command not being available, try using its absolute path instead in the SSH config file ProxyCommand line.

  3. Generate a SSH key

    Follow this guide for more details. Make sure to choose ed25519 algorithkey type.

  4. Import generated key to your account

    See this guide for more details.

  5. Verify

    ssh -T git@ssh.eways.dev

    Running the above command should print a Welcome to GitLab, @username! message.

    See https://docs.gitlab.com/ee/user/ssh.html#verify-that-you-can-connect for more details and troubleshooting guides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment