This module provides a field type for storing OpenSSH public keys on any Drupal entity. It allows configuration for accepted algorithms and minimum RSA key lengths, and validates keys for correctness.
Provides an sshkey_default field type for storing OpenSSH public keys on any fieldable Drupal entity (User, Node, custom entity types). Configure it in Field UI like any other field.
- Per-field allowlist of accepted algorithms (
ssh-rsa,ssh-dss,ssh-ed25519). - Per-field minimum RSA modulus length (default 2048 bits).
- Structural validation via phpseclib rejects malformed and curve-invalid keys.
- Stores an OpenSSH-style SHA-256 fingerprint (
SHA256:<base64>, matchingssh-keygen -lf) and the key's comment as an editable name. - Access governed by the host entity's own field-access logic — no separate permissions.
Release planning
If you'd like to see a stable release, please help with #3580605: Stable release roadmap.
Ask your assistant about SSH Key
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 4.0.0-alpha7 | Pre-release | 10–11 | May 28, 2026 | ||
| 4.0.0-alpha6 | Pre-release | 10–11 | May 15, 2026 | ||
| 4.0.0-alpha5 | Pre-release | 10–11 | May 7, 2026 | ||
| 4.0.0-alpha4 | Pre-release | 10–11 | Mar 21, 2026 | ||
| 4.0.0-alpha3 | Pre-release | 10–11 | Mar 17, 2026 | ||
| 4.0.0-alpha2 | Pre-release | 10–11 | Mar 9, 2026 | ||
| 4.0.0-alpha1 | Pre-release | 10–11 | Mar 8, 2026 | ||
| 4.x-dev | Dev | 10–11 | Mar 8, 2026 |