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