Account API
SSH keys management commands.
Add an SSH key to your project.
Usage:
scw account ssh-key add [arg=value ...]
Args:
Name | Description | |
---|---|---|
name | The name of the SSH key | |
public-key | Required | SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported |
project-id | Project ID to use. If none is passed the default project ID will be used | |
organization-id | Organization ID to use. If none is passed the default organization ID will be used |
Examples:
Add a given ssh key
scw account ssh-key add name=foobar public-key="$(cat <path/to/your/public/key>)"
Get an SSH key from your project.
Usage:
scw account ssh-key get <ssh-key-id ...> [arg=value ...]
Args:
Name | Description | |
---|---|---|
ssh-key-id | Required | The ID of the SSH key |
Initialize SSH key.
Usage:
scw account ssh-key init
List all SSH keys of your project.
Usage:
scw account ssh-key list [arg=value ...]
Args:
Name | Description | |
---|---|---|
order-by | One of: created_at_asc , created_at_desc , updated_at_asc , updated_at_desc , name_asc , name_desc |
|
name | ||
project-id | ||
organization-id |
Remove an SSH key from your project.
Usage:
scw account ssh-key remove <ssh-key-id ...> [arg=value ...]
Args:
Name | Description | |
---|---|---|
ssh-key-id | Required |
Examples:
Remove a given SSH key
scw account ssh-key remove 11111111-1111-1111-1111-111111111111
Update an SSH key on your project.
Usage:
scw account ssh-key update <ssh-key-id ...> [arg=value ...]
Args:
Name | Description | |
---|---|---|
ssh-key-id | Required | |
name | Name of the SSH key |