python-openstackclient/doc/source/command-objects/keypair.rst
Kevin_Zheng 847da51dea change os in command example to openstack(2)
In the current doc, the command examples are like
"os server create" but the acutal command should
be started with "openstack" instead of "os", it
is misleading to first time users.

Change-Id: I80c96f0938cec382f2f714a500138bd5a2c81aa0
2016-12-20 09:18:55 +08:00

1.3 KiB

keypair

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

keypair create

Create new public or private key for server ssh access

keypair create

openstack keypair create
    [--public-key <file>]
    <name>

--public-key <file>

Filename for public key to add. If not used, creates a private key.

<name>

New public or private key name

keypair delete

Delete public or private key(s)

keypair delete

openstack keypair delete
    <key> [<key> ...]

<key>

Name of key(s) to delete (name only)

keypair list

List key fingerprints

keypair list

openstack keypair list

keypair show

Display key details

keypair show

openstack keypair show
    [--public-key]
    <key>

--public-key

Show only bare public key paired with the generated key

<key>

Public or private key to display (name only)