Home > PHP > Function > SSH2 > ssh2_publickey_list()

ssh2_publickey_list()

ssh2_publickey_list - List currently authorized publickeys

Syntax

array ssh2_publickey_list (resource $pkey)

Arguments

  • pkey - Publickey Subsystem resource

Description

List currently authorized publickeys.

Version

PHP PECL ssh2 >= 0.10

Return value

Returns a numerically indexed array of keys, each of which is an associative array containing: name, blob, and attrs elements.