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 |
+----------+-------------------------------------------------+
文档信息
- 本文作者:Lewin
- 本文链接:https://lewinz.com/2021/06/06/openstack-keypair-upload/
- 版权声明:自由转载-非商用-非衍生-保持署名