add-ssh-public-key

subtitle

Adds an SSH public key for an actor.

version

0.9.66

Description

Adds an SSH public key for an actor. The private key that corresponds to this public key can be used to SSH into any workload cluster that the actor is authorized to use.

Synopsis

  add-ssh-public-key
--public-key <value>
[--actor-crn <value>]
[--description <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--public-key (string)

The RSA or ED25519 public ssh key to add. DSA and ECDSA public keys are not supported. The public key should be in RFC4253 format. (e.g. ssh-rsa AAAAB3NzaC1yc2EAAA.. user@host) as produced, for example, by ssh-keygen.

--actor-crn (string)

The CRN of the user or machine user for whom the SSH public key will be added. If it is not included, it defaults to the user making the request.

--description (string)

An optional description for the public key.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

sshPublicKey -> (object)

Information about an SSH public key.

crn -> (string)

The SSH public key CRN.

publicKeyFingerprint -> (string)

The SSH public key SHA256 fingerprint. This is identical to the SHA256 produced by running the following command on a public key named ‘key.pub’; ssh-keygen -l -E SHA256 -f /home/user/.ssh/key.pub. Note that ssh-keygen removes any padding bytes from the BASE64 fingerprint encoding (the ‘=’ characters at the end of the fingerprint) which is also true for this fingerprint.

description -> (string)

An optional description for the public key.

publicKey -> (string)

The SSH public key string. Only populated for DescribeSshPublicKeyResponses. This is the same string that was used when the key was added.

Form Factors

public