Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/1.php on line 1

Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/0.php on line 1
PHP. Руководство по PHP. 2005 (создание и продвижение сайта)
создание и продвижение сайта (вбиваю в ТОП-10, как гвозди)Настройка и сопровождение платной рекламы яндекс.директ

PHP. Руководство по PHP. 2005

ssh2_methods_negotiatedПред. След.

ssh2_methods_negotiated

(PECL)ssh2_methods_negotiated --  Return list of negotiated methods

Description

array ssh2_methods_negotiated (resource session)


Returns list of negotiated methods.

Пример 1. Determining what methods were negotiated
<?php

$connection = ssh2_connect('shell.example.com', 22);

$methods = ssh2_methods_negotiated($connection);

echo "Encryption keys were negotiated using: {$methods['kex']}\n";

echo "Server identified using an {$methods['hostkey']} with ";

echo "fingerprint: " . ssh2_fingerprint($connection) . "\n";

echo "Client to Server packets will use methods:\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 "Server to Client packets will use methods:\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";

?>

See Also: ssh2_connect()

Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.

Ваше письмо×
Free Web Hosting