YUBISERVER-ADMIN(1)
π YUBISERVER-ADMIN β the group chat guide π
okay so bestie, welcome to yubiserver-admin, section 1 of the General Commands Manual. this is literally the admin tool for the yubiserver Yubikey OTP and HOTP/OATH validation server and i'm gonna walk you through it like we're texting at 2am. no cap. π¦
β¨ NAME β¨
yubiserver-admin β the Administration tool for the yubiserver Yubikey OTP and HOTP/OATH validation server. that's the whole vibe. π
πΈ SYNOPSIS πΈ
yubiserver-admin [[-b FILE]] [table] [options]
yeah. that's the shape of it. a FILE, a table, some options. simple, clean, iconic. β¨
π DESCRIPTION π
so yubiserver-admin is a free tool that exists purely to let you admin the simple and lightweight OTP and HOTP/OATH validation server. that's it, that's the job, and it does it. lowkey obsessed with how unbothered this little program is. π«Ά
π OPTIONS π
these programs follow the usual GNU command line syntax, bestie β long options start with two dashes (`-`). here's the full rundown, no skips, no shortcuts:
-y,--yubikeyβ pick the Yubikey Token table. ποΈ-o,--oathβ pick the OATH Token table.-p,--apiβ pick the API Key table.-a N [P S [A]],--add N [P S [A]]β add a Yubikey/OATH token or API KeyNuser, whereNis the username,Pis the Public Token ID,Sis the Secret ID, andAis the AES Key. the deets, and you GOTTA get these right:Nmust be 16 characters max,Pmust be 12 characters for Yubikey and HOTP/OATH.Smust be 12 characters for Yubikey and 40 for OATH, and the AES key must be 32 characters. adding a user to API keys requires a username and an API Key 20 characters long. β¨-x,--deleteβ delete the Yubikey/OATH token or API KeyNuser. bye bestie π-e,--enableβ enable the Yubikey/OATH tokenNuser.-d,--disableβ disable the Yubikey/OATH tokenNuser. not mad, just disappointed. π-l,--listβ list Yubikey/OATH token or API Key.-d,--databaseβ use this SQLite3 database file (optional). (yes,-dreally does show up twice in this house. i don't make the rules, i just report them. π)-h,--helpβ show summary of options. your safe space. π«Ά-V,--versionβ show version of program.
π Examples π
adding a new user for Yubikey OTP authentication
yubiserver-admin -y -a nanakos ccicdcfehlvv c6963f285d78 108e504f37fef82s3b6gb3a45708405cyubiserver-admin -b yubiserver.sqlite -y -a nanakos ccicdcfehlvv c6963f285d78 108e504f37fef82s3b6gb3a45708405c
adding a new user for Yubikey HOTP/OATH authentication
yubiserver-admin -o -a nanakos ccicdcfehlvv 7b02bee356c98c4c7488af9e54vve710de33e9f7yubiserver-admin -b yubiserver.sqlite -o -a nanakos ccicdcfehlvv 7b02bee356c98c4c7488af9e54vve710de33e9f7
adding a new API Key user β needed for enabling your user to validate to the server
yubiserver-admin -p -a nanakos `base64 --wrap=0 /dev/urandom | head -c 20`yubiserver-admin -b yubiserver.sqlite -p -a nanakos `base64 --wrap=0 /dev/urandom | head -c 20`
β quick reminder bestie: those API key examples pipe/dev/urandomthroughbase64 --wrap=0and take the first 20 chars. keep it exact, keep it cute. π
π SEE ALSO π
yubiserver (1). go read that one next, it's the sibling, it's giving main character energy. β¨
π AUTHOR π
this manual page was written by Nanakos Chrysostomos <nanakos@wired-net.gr> for the Debian GNU/Linux system (and may be used by others). permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. π
and that's the whole page, fr fr β this was YUBISERVER-ADMIN(1) from the General Commands Manual, signed off with that little footer stamp π slay, go admin something, ily π β¨
π¦ where this page comes from
- debian bookworm: yubiserver 0.6-3.1 Β· GPL-2.0-or-later
- debian trixie: yubiserver 0.6-3.2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: yubiserver 0.6-3.1 Β· GPL-2.0-or-later
- ubuntu noble: yubiserver 0.6-3.2build2 Β· GPL-2.0-or-later
- ubuntu questing: yubiserver 0.6-3.2build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms