Add an SSH public key
add_ssh_keyRegister an OpenSSH public key to the credential's owner so they can SSH into their account's computers. The key is removed when the credential is revoked. Never send a private key.
Instructions
Register an OpenSSH public key to the person this API key belongs to. It is accepted only by computers with SSH on in the account this credential acts on, and is removed when the credential is revoked. Accepted: Ed25519, ECDSA (P-256, P-384, P-521), their security-key forms, and RSA of at least 3072 bits. Refused: DSA, shorter RSA, certificates, a line with SSH options in front of the key, and anything but one key on one line. A key can belong to one person only, and each person may hold eight. Never send a PRIVATE key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A label, up to 60 characters. Defaults to the comment on the line. | |
| public_key | Yes | One line from a .pub file: "<type> <base64> [comment]". The file's contents can be passed as read: surrounding whitespace, including a trailing newline, is dropped. The comment is dropped too. |