ByCloud Docs
GuidesCLIAPISDK

Create keypair

bycloud compute keypairs create --name <name> [flags]

Create a new SSH keypair. If `public_key` is provided, it will be imported. If not provided, a new keypair will be generated and the private key returned.

Options

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--name

stringrequired

--public_key

stringoptional

SSH public key (if not provided, a new keypair will be generated)

Command

bycloud compute keypairs create \
--name "my-resource"

Output

NAME my-keypair
CRN crn:spo1:compute:keypair:my-keypair
PUBLIC_KEY ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB...
FINGERPRINT 2e:f8:7e:a7:d9:85:c6:c9:44:89:6a:4c:56:7e:98:42
USER_ID 550e8400-e29b-41d4-a716-446655440000
PRIVATE_KEY -----BEGIN RSA PRIVATE KEY-----
...