AGENT-TRANSFER(1)
π¦ agent-transfer π¦
the User Commands manual, bestie π
β¨ NAME β¨
okay so agent-transfer is the girl who copies a secret key from gpg-agent over to ssh-agent π₯ total key glow-up
β¨ SYNOPSIS β¨
agent-transfer [options] KEYGRIP [COMMENT]
β¨ DESCRIPTION β¨
okay bestie, listen π agent-transfer pulls a secret key out of a modern version of GnuPG's agent and hands it off to your running SSH agent π this is SO useful for people whose keys are managed long-term by gpg-agent but who prefer the semantics of OpenSSH's ssh-agent for everyday use π
agent-transfer was written as part of the monkeysphere project π iykyk
The KEYGRIP should be a sequence of 20 hexadecimal characters π not sure what your keygrip is? peek at the output of:
gpg --with-keygrip --list-secret-keys
The COMMENT is optional π«Ά and it gets stored alongside the key in ssh-agent. it must not start with a -, or it could get mistaken for an option π
β¨ OPTIONS β¨
agent-transfer also takes the options that would normally go to ssh-add(1) so you can lock down how the transferred key gets used π main character energy
-cβ every identity you add has to get a confirmation before it can be used for authentication π‘οΈ-t SECONDSβ gives the key a lifetime of SECONDS in the runningssh-agentβ°
β¨ FILES β¨
~/.gnupg/S.gpg-agentβ this is wheregpg-agentis listening π§ it's the "standard socket" for modern GnuPG β¨
β¨ ENVIRONMENT VARIABLES β¨
GNUPGHOMEβ the GnuPG home directory, where the standard socket forgpg-agentlives π if it isn't set, it's assumed to be~/.gnupgSSH_AUTH_SOCKβ where the runningssh-agentis hanging out π§¦
Several other environment variables get passed along in some form to gpg-agent so it can figure out a sensible pinentry π¨ that includes GPG_TTY, TERM, DISPLAY, XAUTHORITY, GTK_IM_MODULE, DBUS_SESSION_BUS_ADDRESS, and LANG π
β¨ BUGS β¨
β οΈ tea time: agent-transfer can only work with RSA and Ed25519 keys π support for other key types isn't implemented yet. patches welcome!! π
β¨ AUTHOR β¨
Written by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> πΈ
β¨ SEE ALSO β¨
monkeysphere(7), ssh(1), ssh-add(1), ssh-agent(1), gpg(1) gpg-agent(1), π
that's the whole tea, bestie! π«Ά this page comes from the monkeysphere project, dated Jan 2019, and it's all about AGENT-TRANSFER(1) π¦ mwah π
π¦ where this page comes from
- alpine 3.24: monkeysphere-doc 0.44-r4 Β· GPL-3.0-or-later
- nixos 26.05: monkeysphere 0.44
- nixpkgs unstable: monkeysphere 0.44
- ubuntu jammy: agent-transfer 0.43-3.1 Β· GPL-3.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms