1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
archived-doc-tr/reference/ssh2/functions/ssh2-publickey-list.xml
2026-01-25 16:11:37 +00:00

154 lines
4.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 12f0e72200ea9249d0fc2f118528bd24b24c44a6 Maintainer: nilgun Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ssh2-publickey-list">
<refnamediv>
<refname>ssh2_publickey_list</refname>
<refpurpose>Yetkili genel anahtarları listeler</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>ssh2_publickey_list</methodname>
<methodparam><type>resource</type><parameter>özkaynak</parameter></methodparam>
</methodsynopsis>
<simpara>
Yetkili genel anahtarları listeler.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>özkaynak</parameter></term>
<listitem>
<simpara>
<function>ssh2_publickey_init</function> tarafından döndürülen bir
genel anahtar alt sistemi özkaynağı.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Herbiri <literal>name</literal>, <literal>blob</literal> ve
<literal>attrs</literal> elemanlarından oluşan bir ilişkisel dizi içeren
elemanlardan oluşan sayısal indisli bir dizi döndürür.
</simpara>
<table>
<title>Genel Anahtar Elemanları</title>
<tgroup cols="2">
<thead>
<row>
<entry>Dizi anahtarı</entry>
<entry>Anlamı</entry>
</row>
</thead>
<tbody>
<row>
<entry>name</entry>
<entry>Genel anahtarı oluşturmak için kullanılan algoritmanın ismi;
<literal>ssh-dss</literal> veya <literal>ssh-rsa</literal> gibi.</entry>
</row>
<row>
<entry>blob</entry>
<entry>Genel anahtarın ham ikil verisi.</entry>
</row>
<row>
<entry>attrs</entry>
<entry>Genel anahtara atanmış öznitelikler. En bilineni, sadece 1. sürüm
genel anahtarlı sunucular tarafından desteklenen
<literal>comment</literal> özniteliği olup herhangi bir dizgeyi değer
olarak alabilir.</entry>
</row>
</tbody>
</tgroup>
</table>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>- <function>ssh2_publickey_list</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$ssh2 = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($ssh2, 'jdoe', 'secret');
$pkey = ssh2_publickey_init($ssh2);
$list = ssh2_publickey_list($pkey);
foreach($list as $key) {
echo "Key: {$key['name']}\n";
echo "Blob: " . chunk_split(base64_encode($key['blob']), 40, "\n") . "\n";
echo "Comment: {$key['attrs']['comment']}\n\n";
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Key: ssh-rsa
Blob: AAAAB3NzaC1yc2EAAAABIwAAAIEA5HVt6VqSGd5P
TrLRdjNONxXH1tVFGn0Bd26BF0aCP9qyJRlvdJ3j
4WBeX4ZmrveGrjMgkseSYc4xZ26sDHwfL351xjza
Lpipu\BGRrw17mWVBhuCExo476ri5tQFzbTc54VE
HYckxQ16CjSTibI5X69GmnYC9PNqEYq/1TP+HF10
Comment: John's Key
Key: ssh-rsa
Blob: AAAAB3NzaHVt6VqSGd5C1yc2EAAAABIwA232dnJA
AIEA5HVt6VqSGd5PTrLRdjNONxX/1TP+HF1HVt6V
qSGd50H1tVFGn0BB3NzaC1yc2EAd26BF0aCP9qyJ
RlvdJ3j4WBeX4ZmrveGrjMgkseSYc4xZ26HVt6Vq
SGd5sDHwfL351xjzaLpipu\BGB3NzaC1yc2EA/1T
Comment: Alice's Key
]]>
</screen>
</example>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.ssh2.subsystem.publickey;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>ssh2_publickey_init</function></member>
<member><function>ssh2_publickey_add</function></member>
<member><function>ssh2_publickey_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->