1Net::SSH2::PublicKey(3)User Contributed Perl DocumentatioNnet::SSH2::PublicKey(3)
2
3
4
6 Net::SSH2::PublicKey - SSH 2 public key object
7
9 *** WARNING: public key functionality in libssh2 is experimental
10 *** and mostly abandoned. Don't expect anything on this module to
11 *** work correctly.
12
13 A public key object is created by the Net::SSH2 "public_key" method.
14
16 add ( name, blob, overwrite flag, attributes... )
17 Adds a new public key; attributes is a list of hashes with "name",
18 "value", and "mandatory" keys; mandatory defaults to false and value to
19 empty.
20
21 remove ( name, blob )
22 Remove the given public key.
23
24 fetch
25 Returns a list of public keys in array context (count in scalar
26 context); each item is a hash with keys "name", "blob", and "attr",
27 with the latter being a hash with "name", "value", and "mandatory"
28 keys.
29
31 Net::SSH2.
32
33
34
35perl v5.32.1 2021-01-27 Net::SSH2::PublicKey(3)