ssh2_publickey_init

(PECL ssh2 >= 0.10)

ssh2_publickey_init Initialize Publickey subsystem

說明

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.

參數(shù)

session

返回值

Returns an SSH2 Publickey Subsystem resource for use with all other ssh2_publickey_*() methods 或者在失敗時返回 false.

注釋

注意: 公鑰子系統(tǒng)用于管理服務(wù)器到被認(rèn)證的客戶端的公鑰。要用公鑰認(rèn)證方法來認(rèn)證遠(yuǎn)程系統(tǒng),應(yīng)使用 ssh2_auth_pubkey_file() 函數(shù)。

參見