AUTHORI...YS-TEST(1p)
β¨ NAME β¨
okay so bestie, this is the authorized-keys-test page from the User Contributed Perl Documentation (that's the 1p manual section, iykyk) π
authorized-keys-test β validate a authorized_keys file π
πΈ SYNOPSIS πΈ
authorized-keys-test ~/.ssh/authorized_keys
π¦ DESCRIPTION π¦
So like, authorized-keys-test reads in the keys of an ssh client authorized_keys file and reports any errors. That's the whole gig. It's giving "personal trainer for your ssh keys" fr fr β¨
π OPTIONS π
-vβ Verbose mode, babe. Turns onDEBUGinstead ofINFO. So instead of chill vibes you get the full behind-the-scenes commentary π-sβ Strict mode. If it's on, the test insists on properly formattedauthorized_keysfiles and isn't nearly as lenient as thesshddaemon's parser. Like, sshd is the chill friend who lets stuff slide;-sis the one checking your homework with a red pen π Not a single sloppy line gets past her.
π₯ EXAMPLES π₯
First up, the normal, no-drama run:
$ authorized-keys-test ~/.ssh/authorized_keys
/home/joe/.ssh/authorized_keys ok
Found 4 keys
* ssh-2
* ssh-2
* ssh-2
* ssh-2
Look at that. <green>ok</green>, four keys found, four ssh-2 entries, everyone's thriving π
Now the strict mode run, where things get spicy πΆοΈ
# strict mode:
$ authorized-keys-test -s ~/.ssh/authorized_keys
AuthorizedKeysFile.pm-69: Key [eme alsdkfj] failed sanity check -- ignored
AuthorizedKeysFile.pm-71: Strict mode on: Abort
/home/joe/.ssh/authorized_keys *not* ok
Found 4 keys
* ssh-2
* ssh-2
* ssh-2
* ssh-2
Not the <red>*not* ok</red> ππ She said abort. Periodt. Note that even after the abort it still tells you the file has 4 keys and lists all four ssh-2 entries, so you can still see what was in there.
π LEGALESE π
Copyright 2009 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. π
π«Ά AUTHOR π«Ά
2009, Mike Schilli <cpan@perlmeister.com> β icon, legend, ate, no crumbs π
perl v5.36.0 πΈ 2022-10-13 β that's the version and date this page was cooked up, bestie. Manual name up top was AUTHORI...YS-TEST(1p) in case you lost the plot. Go validate those keys, mwah ππ§
π¦ where this page comes from
- ubuntu noble: libnet-ssh-authorizedkeysfile-perl 0.18-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-ssh-authorizedkeysfile-perl 0.18-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-ssh-authorizedkeysfile-perl 0.18-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms