list_ssh_keys
GET /user/ssh-keys
Lists all SSH keys registered to your account.
Parameters: None.
Returns: List of SSH key objects.
Example:
create_ssh_key
POST /user/ssh-keys
Adds a new SSH public key to your account.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
name | str | Yes | Display name for the key |
public_key | str | Yes | SSH public key content (e.g., ssh-ed25519 AAAA...) |
delete_ssh_key
DELETE /user/ssh-keys/{keyId}
Removes an SSH key from your account. Existing CVMs that were provisioned with this key will retain it until they are restarted.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
key_id | str | Yes | SSH key identifier |
None
Example:
import_github_profile_ssh_keys
POST /user/ssh-keys/github-profile
Imports SSH public keys from a GitHub user profile. This fetches the keys listed at https://github.com/{username}.keys and adds them to your account.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
github_username | str | Yes | GitHub username to import keys from |
sync_github_ssh_keys
POST /user/ssh-keys/github-sync
Syncs SSH keys from your connected GitHub account. This requires that your Phala Cloud account is linked to GitHub via OAuth. Unlike import_github_profile_ssh_keys, this uses your authenticated GitHub connection and keeps keys in sync.
Parameters: None.
Returns: Sync response with details of added/removed keys.
Example:
Related
- Authentication — account setup
- CVM Lifecycle — provisioning CVMs with SSH access

