Unimus supports SSH private keys in the following formats:
rsa | dsa | ecdsa | ed25519 | |
---|---|---|---|---|
PEM | yes | yes | yes | no |
PKCS8 | yes | yes | no | no |
OpenSSH (RFC4716) | no | no | no | no |
Different versions of ssh-keygen (OpenSSH) use different default key types and formats across the different OpenSSH versions.
Key generation and conversion / transformation
If your SSH key is not being properly loaded by Unimus, you can easily use OpenSSH to transform key formats. This command will transform an OpenSSH private key into a PEM encoded key:
ssh-keygen -e -f /path/to/openssh.key -m PEM > /path/to/new_pem.key -e read OpenSSH formatted key -f read from file -m export format
Alternatively, you can generate a new key pair already formatted in a supported format:
ssh-keygen -t ecdsa -m PEM -f /path/to/key -t use ecdsa type -m use PEM format -f output to file