summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/keypair.rst
blob: a539f0a208f0cd00218e2f0b9d2726585cd9a224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
=======
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

.. program:: keypair create
.. code:: bash

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

.. option:: --public-key <file>

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

.. option:: --private-key <file>

    Filename for private key to save. If not used, print private key in
    console.

.. describe:: <name>

    New public or private key name

keypair delete
--------------

Delete public or private key(s)

.. program:: keypair delete
.. code:: bash

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

.. describe:: <key>

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

keypair list
------------

List key fingerprints

.. program:: keypair list
.. code:: bash

    openstack keypair list

keypair show
------------

Display key details

.. program:: keypair show
.. code:: bash

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

.. option:: --public-key

    Show only bare public key paired with the generated key

.. describe:: <key>

    Public or private key to display (name only)