Bast

Key management

Generate, import, export, and install SSH keys from the keys tab or CLI.

Switch to the keys tab with 2. Bast lists keys it finds on disk, keys in ssh-agent, and which hosts reference each key.

The keys tab with generate, import, and export actions
The keys tab with generate, import, and export actions

Actions

KeyAction
aGenerate a new ed25519 or RSA keypair
iImport an existing private key from a file or pasted PEM
eEdit the comment on a public key
uPush a public key to a remote ~/.ssh/authorized_keys
xExport key files to a folder you choose
pChange a key passphrase via ssh-keygen
cCopy the public key to your clipboard
dDelete a Bast-managed keypair

Generate

Create a new key in Bast's managed keys directory (~/.ssh/bast/keys). Choose ed25519 or RSA and optionally set a passphrase.

Import

Bring in an existing private key from a file path or pasted PEM text. Bast can derive the public key if you do not provide one. It verifies keypairs on import so mismatched public and private keys are caught early.

Import from stdin without putting key material in shell history:

bast keys import work --private - < id_ed25519

Add to server

Push a public key to a remote server's authorized_keys. Bast may prompt for a password if the server requires it. This uses your system ssh to copy the key.

Export

Copy key files to a directory you choose. You confirm by typing EXPORT because private keys are sensitive. Pass --yes on the CLI to skip the confirmation in scripts.

Storage

Generated and imported keys live in ~/.ssh/bast/keys. Private keys are written at mode 0600. Never paste real private keys into issues or bug reports.

On this page