Restrict allowed SSH key technologies and minimum length
ssh-keygen
allows users to create RSA keys with as few as 768 bits, which
falls well below recommendations from certain standards groups (such as the US
NIST). Some organizations deploying GitLab will need to enforce minimum key
strength, either to satisfy internal security policy or for regulatory
compliance.
Similarly, certain standards groups recommend using RSA, ECDSA, or ED25519 over the older DSA, and administrators may need to limit the allowed SSH key algorithms.
GitLab allows you to restrict the allowed SSH key technology as well as specify the minimum key length for each technology.
In the Admin area under Settings (/admin/application_settings
), look for
the “Visibility and Access Controls” area:
If a restriction is imposed on any key type, users will be unable to upload new SSH keys that don’t meet the requirement. Any existing keys that don’t meet it will be disabled but not removed and users will be unable to pull or push code using them.
An icon will be visible to the user of a restricted key in the SSH keys section of their profile:
Hovering over this icon will tell you why the key is restricted.
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc