vinfra service compute key create
Create a new compute SSH key:
usage: vinfra service compute key create --public-key <public-key> [--description <description>] <ssh-key>
---public-key <public-key>
- Filename for a public key to upload
--description <description>
- SSH key description
<ssh-key>
- SSH key name
Example:
# vinfra service compute key create publickey --public-key /root/.ssh/id_rsa.pub \ --description 'public key' +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | created_at | 2019-04-25T13:41:14.241736+00:00 | | description | public key | | name | publickey | +-------------+----------------------------------+
This command creates a public SSH key publickey
.