sshkey

delete

Deletes the SSH key with the given ID.

maas $PROFILE sshkey delete [--help] [-d] [-k] id [data ...]

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “id”

Optional Int. An SSH key ID.

Note: This command accepts JSON.

read

Retrieves an SSH key with the given ID.

maas $PROFILE sshkey read [--help] [-d] [-k] id [data ...]

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “id”

Optional Int. An SSH key ID.

Note: This command accepts JSON.

sshkeys create

Add a new SSH key to the requesting or supplied user’s account.

maas $PROFILE sshkeys create [--help] [-d] [-k] [data ...]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “key”

Optional String. A public SSH key should be provided in the request payload as form data with the name ‘key’: key: "key-type public-key-data" - key-type: ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-dss, ssh-ed25519, ssh-rsa - public key data: Base64-encoded key data.

Note: This command accepts JSON.

sshkeys import

Import the requesting user’s SSH keys for a given protocol and authorization ID in protocol:auth_id format.

maas $PROFILE sshkeys import [--help] [-d] [-k] [data ...]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “keysource”

Optional String. The source of the keys to import should be provided in the request payload as form data: E.g. source:user - source: lp (Launchpad), gh (GitHub) - user: User login

Note: This command accepts JSON.

sshkeys read

List all keys belonging to the requesting user.

maas $PROFILE sshkeys read [--help] [-d] [-k]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.