📄 function.ssh2-publickey-init.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Initialize Publickey subsystem</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ssh2-publickey-add.html">ssh2_publickey_add</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ssh2-publickey-list.html">ssh2_publickey_list</a></div> <div class="up"><a href="ref.ssh2.html">SSH2 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ssh2-publickey-init" class="refentry"> <div class="refnamediv"> <h1 class="refname">ssh2_publickey_init</h1> <p class="verinfo">(PECL ssh2:0.10)</p><p class="refpurpose"><span class="refname">ssh2_publickey_init</span> — <span class="dc-title"> Initialize Publickey subsystem </span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">resource</span> <span class="methodname"><b><b>ssh2_publickey_init</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$session</tt></span> )</div> <p class="para rdfs-comment"> Request the Publickey subsystem from an already connected SSH2 server. </p> <p class="para"> 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 <b>ssh2_publickey_init()</b> function will return <b><tt>FALSE</tt></b>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">session</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an <i>SSH2 Publickey Subsystem</i> resource for use with all other ssh2_publickey_*() methods, or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <blockquote><p><b class="note">Note</b>: <span class="simpara">The public key subsystemis used for managing public keys on a server to which the client is<em class="emphasis">already</em> authenticated. To authenticate to a remote systemusing public key authentication, use the<a href="function.ssh2-auth-pubkey-file.html" class="function">ssh2_auth_pubkey_file()</a> function instead.</span></p></blockquote> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.ssh2-publickey-add.html" class="function" rel="rdfs-seeAlso">ssh2_publickey_add()</a></li> <li class="member"><a href="function.ssh2-publickey-remove.html" class="function" rel="rdfs-seeAlso">ssh2_publickey_remove()</a></li> <li class="member"><a href="function.ssh2-publickey-list.html" class="function" rel="rdfs-seeAlso">ssh2_publickey_list()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ssh2-publickey-add.html">ssh2_publickey_add</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ssh2-publickey-list.html">ssh2_publickey_list</a></div> <div class="up"><a href="ref.ssh2.html">SSH2 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -