Skip to main content

SSH Key Setup

To access git servers through Hoop, you need an SSH key registered with your git server account. This works with GitHub, GitLab, Gitea, Forgejo, and any SSH-based git server.

Generate SSH Key (if you don’t have one)

ssh-keygen -t rsa -b 4096 -f ~/.ssh/git_key -N ""

Register Key with Your Git Server

GitHub:
  • Go to GitHub Settings → SSH and GPG keys → New SSH key
  • Paste your public key
  • Give it a name (e.g., “Git Access”)
  • Click “Add SSH key”
GitLab:
  • Go to GitLab Settings → SSH Keys
  • Paste your public key
  • Set expiration date if needed
  • Click “Add key”
Gitea/Forgejo:
  • Go to Settings → SSH/GPG Keys
  • Click “Add Key”
  • Paste your public key

Display Your Public Key

cat ~/.ssh/git_key.pub