CakeFest 2024: The Official CakePHP Conference

ssh2_methods_negotiated

(PECL ssh2 >= 0.9.0)

ssh2_methods_negotiatedMüzakere yöntemlerini listeler

Açıklama

ssh2_methods_negotiated(resource $oturum): array

Müzakere yöntemlerinin listesini döndürür.

Bağımsız Değişkenler

oturum

ssh2_connect() ile sağlanan bir SSH bağlantı tanıtıcısı.

Dönen Değerler

Örnekler

Örnek 1 - Müzakere yöntemlerini öğrenmek

<?php
$baglanti
= ssh2_connect('shell.example.com', 22);
$yontemler = ssh2_methods_negotiated($baglanti);

echo
"Şifreleme anahtarları ile ilgili müzakere yöntemleri: " .
"{$methods['kex']}\n";
echo
"Sunucu, {$methods['hostkey']} yönteminde şu parmak izi ile tanınır: " .
ssh2_fingerprint($baglanti) . "\n";

echo
"Sunucudan istenen paketler için şu yöntemler kullanılır:\n";
echo
"\tCrypt: {$methods['client_to_server']['crypt']}\n";
echo
"\tComp: {$methods['client_to_server']['comp']}\n";
echo
"\tMAC: {$methods['client_to_server']['mac']}\n";

echo
"İstemciden istenen paketler için şu yöntemler kullanılır:\n";
echo
"\tCrypt: {$methods['server_to_client']['crypt']}\n";
echo
"\tComp: {$methods['server_to_client']['comp']}\n";
echo
"\tMAC: {$methods['server_to_client']['mac']}\n";

?>

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top