Net::SS...blicKey(3)
π NAME π
okay so this is Net::SSH2::PublicKey β it lives in the User Contributed Perl Documentation corner of your man pages, and it's your SSH 2 public key object π (yes the header line up top is this same page, we're just vibing, bestie).
β¨ DESCRIPTION β¨
β οΈ WARNING: public key functionality in libssh2 is experimental and mostly abandoned. Don't expect anything on this module to work correctly. β οΈ
no like fr fr. that's not me being dramatic, that's the actual documented truth and I need you to sit with it. this corner of libssh2? abandoned. experimental. mostly abandoned. do not build your little dreams on it, bestie π
so. a public key object. where do you even get one? you don't make it yourself, nope β it gets created by the Net::SSH2 public_key method. that's the plug π«Ά
π METHODS π
πΈ add ( name, blob, overwrite flag, attributes... )
adds a brand new public key, iconic behavior β¨
and attributes? that's a list of hashes, and each one of those hashes has name, value, and mandatory keys. the little details: mandatory defaults to false, and value defaults to empty. slay π
π¦ remove ( name, blob )
removes the given public key. bye bestie ππ
π fetch
returns a list of public keys β in array context you get the whole list, in scalar context you get just the count (iykyk, classic Perl move).
each item in that list is a hash with keys name, blob, and attr. and attr? that's a hash too, with name, value, and mandatory keys. it's hashes all the way down, babes π
π SEE ALSO π
Net::SSH2β go here, this is the main character, this module is just its little sidekick π
okay that's the whole page, you're fully caught up bestie, go forth and maybe don't use this one π
this was perl v5.42.0, dated 2025-07-25, straight from the User Contributed Perl Documentation shelves β¨ mwah, take care of yourself π«Ά
π¦ where this page comes from
- fedora 43: perl-Net-SSH2 0.74-4.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms