Skip to main content

Usage

phala ssh-keys <subcommand> [args] [options]

Subcommands

ssh-keys list / ssh-keys ls

List SSH keys for the current user.

Usage

phala ssh-keys list [options]
phala ssh-keys ls [options]

Examples

$ phala ssh-keys list
$ phala ssh-keys ls
$ phala ssh-keys list --json

ssh-keys add

Add a local SSH public key to your account. If no --key-file is specified, the command looks for a default key in ~/.ssh/ (tries id_ed25519.pub, id_rsa.pub, id_ecdsa.pub in order). If no --name is given, defaults to <hostname>-<key-filename>.

Usage

phala ssh-keys add [options]

Options

FlagShortDefaultDescription
--name <name><hostname>-<keyfile>Name for the SSH key
--key-file <path>Auto-detectedPath to SSH public key file

Examples

$ phala ssh-keys add
$ phala ssh-keys add --name my-laptop --key-file ~/.ssh/id_ed25519.pub

ssh-keys remove / ssh-keys rm

Remove an SSH key from your account.

Usage

phala ssh-keys remove [key_id] [options]
phala ssh-keys rm [key_id] [options]

Arguments

NameRequiredDescription
key_idNoSSH key ID to remove (from phala ssh-keys list)

Options

FlagShortDefaultDescription
--interactive-ifalseSelect key from list

Examples

$ phala ssh-keys rm sshkey_xxx
$ phala ssh-keys rm -i

ssh-keys import-github

Import SSH keys from a GitHub user’s public profile. Keys that already exist are skipped.

Usage

phala ssh-keys import-github <github_username>

Arguments

NameRequiredDescription
github_usernameYesGitHub username to import SSH keys from

Examples

$ phala ssh-keys import-github octocat
$ phala ssh-keys import-github myuser --json