Skip to content

af key

Create a key for an agent and print its public key

Writes a new private key to the credential file (see –credential), which must not exist yet, and prints the public key. Give the public key to the agent’s parent, which starts the agent with it; then run af with –actor set to the new agent’s ID. The private key never leaves the file. With –public, prints the public key of the key the file holds already, making none, as ssh-keygen -y does.

Usage

af key [OPTIONS]

Options

  • --public

    Print the public key of the key already in the credential file; make no key

Global options

Every af command also takes the global options.

Examples

af key
af key --public

Type to search…

↑↓ navigate↵ selectEsc close