CLI Client: SSH Key Pairs

Note

Red Cloud 2 is currently in beta testing and not available to all users. If you are not a Red Cloud 2 beta tester, use the production Red Cloud instead. This Red Cloud 2 documentation is still under development.

Beta testers: Report all problems to CAC Help. Please specify Red Cloud 2 when reporting problems. Thank you!

SSH Key Pairs

List Public Keys

openstack keypair list

Create a New SSH Key Pair

You could generate a key and print it out in terminal, which you may have to save it manually. Alternatively, save the priviate key to <private-key-file> by providing the option. Name the new keypair using the <key-name> parameter.

openstack keypair create <key-name>
openstack keypair create --private-key <private-key-file> <key-name>

Import a Public Key

You must provide a public key file by the --public-key option to import a public key. Name the new keypair using the <key-name> parameter.

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

Delete a Public Key

openstack keypair delete <key-name>