AUTHORI...YS-TEST(1p)

πŸ“¦
version 0.18 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 on DEBUG instead of INFO. 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 formatted authorized_keys files and isn't nearly as lenient as the sshd daemon's parser. Like, sshd is the chill friend who lets stuff slide; -s is 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