python-openstackclient/doc/source/command-objects/keypair.rst
Rui Chen dee22d8faa Add "--private-key" option for "keypair create"
Aim to specify the private key file to save when keypair
is created. That is a convenient way to save private key
in OSC interactive mode, avoid to copy CLI output, then
paste it into file.

Change-Id: I119d2f2a3323d17ecbe3de4e27f35e1ceef6e0a5
Closes-Bug: #1549410
2017-03-06 08:34:28 +00:00

1.4 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> | --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

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)