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
- Navigate to Account Settings > Git SSH Keys
- Click Add New Git SSH Key
- Enter a descriptive name for your key (e.g., “GitHub Deploy Key”, “GitLab Access”)
- Click Generate Key
After generation, you’ll be shown the public key. Copy this key and add it to your Git provider:
GitHub
- Go to your repository’s settings
- Navigate to “Deploy keys”
- Click “Add deploy key”
- Paste the public key and give it a title
- Check “Allow write access” if needed
- Click “Add key”
GitLab
- Go to your repository’s settings
- Navigate to “Repository” > “Deploy Keys”
- Click “Add deploy key”
- Paste the public key and give it a title
- Check “Write access allowed” if needed
- Click “Add key”
Bitbucket
- Go to your repository’s settings
- Navigate to “Security” > “Access keys”
- Click “Add key”
- Select “Repository access” as the type
- Paste the public key and give it a label
- Click “Add key”
Using Git SSH Keys
When creating or editing a Git repository in Blossom:
- Select the appropriate Git SSH key from the dropdown
- 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