(PECL ssh2 >= 0.10)
ssh2_publickey_init — Initialize Publickey subsystem
$session
): resource|falseRequest 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
.
session
Returns an SSH2 Publickey Subsystem
resource for use
with all other ssh2_publickey_*() methods 或者在失敗時(shí)返回 false
.
注意: 公鑰子系統用于管理服務(wù)器到已被認證的客戶(hù)端的公鑰。要用公鑰認證方法來(lái)認證遠程系統,應使用 ssh2_auth_pubkey_file() 函數。