USAGE(1)
π USAGE(1) β the yubikey-agent glow-up guide π
okay bestie, so this is the USAGE(1) page, and it's all about yubikey-agent β literally the manual you need so your YubiKey stops being mysterious. sit down, grab a strawberry, we're doing this π
β¨ NAME β¨
yubikey-agent β a seamless ssh-agent for YubiKeys π¦
like, it's an ssh-agent but for your YubiKey, and it just⦠flows. no drama, no chaos. iconic behaviour, honestly.
πΈ CONFIGURATION πΈ
so here's the setup tea. first things first: if you want yubikey-agent to start automatically every time, you enable its service like this:
systemctl --user enable yubikey-agent
and if you just wanna start it once β one-time thing, no strings β you start its service instead:
systemctl --user start yubikey-agent
but wait, there's more π you also have to set the $SSH_AUTH_SOCK variable to point at:
"$XDG_RUNTIME_DIR/yubikey-agent/yubikey-agent.sock"
that's the socket. that's where the magic lives. you need it, no skipping π
if you're a bash girlie, you can do that by running this command before your first ever use of yubikey-agent:
echo 'export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/yubikey-agent/yubikey-agent.sock"' >> ~/.bashrc
and that just appends it to your ~/.bashrc so it sticks around forever. lowkey the easiest glow-up in the whole page π
π DESCRIPTION π
here's how you actually call the thing:
yubikey-agent [options] command [arguments]
that's the whole vibe. options, then a command, then whatever arguments that command wants. simple. slay.
β OPTIONS β
-setupβ generate a brand new SSH key on the attached YubiKey π like, fresh key, new era, main character energy. the key gets made right there on the YubiKey that's plugged in.-l PATHβ run the agent, but have it listen on the UNIX socket at PATH πΈ so instead of the default spot, you're telling it exactly where to park its socket. you pick thePATH, it listens there. periodt.
π quick vibe check: this page is short because the tool is chill. don't overthink it β enable the service, set your $SSH_AUTH_SOCK, and you're literally done.
and that's the page, bestie π«Ά this was yubikey-agent, from way back in September 2021, living in section USAGE(1) of the manual. go forth and ssh in peace β¨π
π¦ where this page comes from
- ubuntu questing: yubikey-agent 0.1.4-3
- ubuntu resolute: yubikey-agent 0.1.6-4 Β· BSD-3-Clause
- ubuntu stonking: yubikey-agent 0.1.6-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms