php8.5
Home/ Manual/ ssh2 / functions/ ssh2_publickey_init

ssh2_publickey_init

PHP function Edit on GitHub ✎

(PECL ssh2 >= 0.10)

Initialize Publickey subsystem

Description

ssh2_publickey_init(resource $session): resource|false

Request the Publickey subsystem from an already connected SSH2 server.

The publickey subsystem allows an already connected and authenticated client to manage the list of authorized public keys stored on the target server in an implementation agnostic manner. If the remote server does not support the publickey subsystem, the ssh2_publickey_init() function will return false.

Parameters

session

Return Values

Returns an SSH2 Publickey Subsystem resource for use with all other ssh2_publickey_*() methodsFalseforfailure.

Notes Publickey

See Also

Source: reference/ssh2/functions/ssh2-publickey-init.xml · from the official PHP manual (php/doc-en)