Skip to main content
openstack keypair create

Create new public or private key for server ssh access

Options​

OptionDescription
<name>New public or private key name
--public-key <file>Filename for public key to add. If not used, generates a private key in ssh-ed25519 format. To generate keys in other formats, including the legacy ssh-rsa format, you must use an external tool such as ssh-keygen and specify this argument.
--private-key <file>Filename for private key to save. If not used, print private key in console.
--type <type>Keypair type (supported by --os-compute-api-version 2.2 or above)
--user <user>The owner of the keypair (admin only) (name or ID) (supported by --os-compute-api-version 2.10 or above)
--user-domain <user-domain>Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.