LinuxCommandLibrary

keychain

TLDR

Start SSH agent

$ eval $(keychain --eval [id_rsa])
copy
Add multiple keys
$ eval $(keychain --eval [id_rsa] [id_ed25519])
copy
Include GPG keys
$ eval $(keychain --eval --agents ssh,gpg [id_rsa] [GPGKEY])
copy
Clear cached keys
$ keychain --clear
copy
Quiet mode
$ eval $(keychain -q --eval [id_rsa])
copy
Show status
$ keychain -l
copy

SYNOPSIS

keychain [options] [keys...]

DESCRIPTION

keychain manages SSH and GPG agent processes. It reuses agents across login sessions.
The tool starts agents once and inherits them. It avoids repeated passphrase prompts across terminals.
keychain manages SSH/GPG agents.

PARAMETERS

KEYS

SSH or GPG keys to manage.
--eval
Output shell eval commands.
--agents LIST
Agent types (ssh, gpg).
--clear
Clear cached keys.
-q, --quiet
Suppress output.
-l, --list
List cached keys.
--help
Display help information.

CAVEATS

Shell integration required. Profile/rc file setup. Funtoo project.

HISTORY

keychain was created by Daniel Robbins (Funtoo) to simplify SSH agent management across sessions.

SEE ALSO

Copied to clipboard