Git SSH Keys

Git SSH keys allow you to authenticate with private Git repositories. These are different from the SSH keys used for server access.

Adding a Git SSH Key

  1. Navigate to Account Settings > Git SSH Keys
  2. Click Add New Git SSH Key
  3. Enter a descriptive name for your key (e.g., “GitHub Deploy Key”, “GitLab Access”)
  4. Click Generate Key

After generation, you’ll be shown the public key. Copy this key and add it to your Git provider:

GitHub

  1. Go to your repository’s settings
  2. Navigate to “Deploy keys”
  3. Click “Add deploy key”
  4. Paste the public key and give it a title
  5. Check “Allow write access” if needed
  6. Click “Add key”

GitLab

  1. Go to your repository’s settings
  2. Navigate to “Repository” > “Deploy Keys”
  3. Click “Add deploy key”
  4. Paste the public key and give it a title
  5. Check “Write access allowed” if needed
  6. Click “Add key”

Bitbucket

  1. Go to your repository’s settings
  2. Navigate to “Security” > “Access keys”
  3. Click “Add key”
  4. Select “Repository access” as the type
  5. Paste the public key and give it a label
  6. Click “Add key”

Using Git SSH Keys

When creating or editing a Git repository in Blossom:

  1. Select the appropriate Git SSH key from the dropdown
  2. Ensure your repository URL is in SSH format (e.g., [email protected]:user/repo.git)

Managing Git SSH Keys

You can view all your Git SSH keys from Account Settings > Git SSH Keys. Each key shows:

  • Name
  • Fingerprint (for verification)
  • Creation date

To remove a key, click the “Delete” button next to it. Note that you cannot delete a key that is currently being used by any repositories.

Security Notes

  • Git SSH keys are encrypted at rest
  • Each key should be used for a specific purpose or repository
  • Follow your organization’s security policies when managing deploy keys
  • Consider rotating keys periodically for enhanced security