The badly named keypair is really the public key of an OpenSSH key pair to be used for access to created servers. You can also create a private key for access to a created server by not passing any argument to the keypair create command.
Compute v2
Create new public or private key for server ssh access
openstack keypair create
[--public-key <file> | --private-key <file>]
<name>
--public-key <file>¶Filename for public key to add. If not used, creates a private key.
--private-key <file>¶Filename for private key to save. If not used, print private key in console.
name¶New public or private key name
This command is provided by the python-openstackclient plugin.
Delete public or private key(s)
openstack keypair delete <key> [<key> ...]
key¶Name of key(s) to delete (name only)
This command is provided by the python-openstackclient plugin.
List key fingerprints
openstack keypair list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
--format-config-file <FORMAT_CONFIG>¶Config file for the dict-to-csv formatter
--sort-column SORT_COLUMN¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
This command is provided by the python-openstackclient plugin.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.