Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

5.94. nova keypair-add

usage: nova keypair-add [--pub-key <pub-key>] [--key-type <key-type>]
                        [--user <user-id>]
                        <name>
Create a new key pair for use with servers.

Positional arguments

<name>


        Name of key.

Optional arguments

--pub-key <pub-key>


        Path to a public ssh key.

--key-type <key-type>


        Keypair type. Can be ssh or x509. (Supported by API
      versions '2.2' - '2.latest')

--user <user-id> ID


        of user to whom to add key-pair (Admin only).
      (Supported by API versions '2.10' - '2.latest')