openstack 秘钥上传

2021/06/06 openstack 秘钥 共 610 字,约 2 分钟

nova help | grep key
    flavor-key          Set or unset extra_spec for a flavor.
    keypair-add         Create a new key pair for use with instances.
    keypair-delete      Delete keypair given by its name.
    keypair-list        Print a list of keypairs for a user
    keypair-show        Show details about the given keypair.

上传秘钥

# /root/.ssh/id_rsa.pub 文件位置
# terrykey 秘钥名
nova keypair-add --pub-key /root/.ssh/id_rsa.pub terrykey

查看秘钥列表

nova keypair-list

+----------+-------------------------------------------------+
| Name     | Fingerprint                                     |
+----------+-------------------------------------------------+
| terrykey | 94:b8:9c:2a:31:8c:2c:87:7f:f5:80:24:23:73:f8:e9 |
+----------+-------------------------------------------------+

文档信息

Search

    Table of Contents