SSH-KEY(1)General Commands ManualSSH-KEY(1)

ssh-key — account keys and HTTPS tokens

ssh chroot.dev ssh-key list

ssh chroot.dev ssh-key add [key]

ssh chroot.dev ssh-key rm key

ssh chroot.dev ssh-key generate-api-key [--cmds list] [--exp time] [--label label] [--vm name]

Keys of the account.
[key]
Add a public key; without key, read it from standard input. ‘github:user’ or ‘sourcehut:~user’ adds the public keys of that account, copied once.
key
Remove a key by fingerprint, comment or the key itself.
Create a key and print a token for it:
list
Comma-separated commands the token may run. The default is help, ls, new, whoami, ssh-key list and share show.
time
Validity: ‘12h’, ‘30d’, ‘1y’ or ‘never’, the default.
label
Comment of the key, used to revoke it. The default is ‘api’.
name
A token for the HTTPS of that VM instead of /exec.

$ ssh chroot.dev ssh-key add < ~/.ssh/id_laptop.pub
$ ssh chroot.dev ssh-key add github:alice
$ ssh chroot.dev ssh-key generate-api-key --label ci --exp 30d
$ ssh chroot.dev ssh-key rm ci

whoami(1), account(7), api(7)

chroot.devOctober 7, 2026SSH-KEY(1)