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_tunnelПред. След.

ssh2_tunnel

(PECL)ssh2_tunnel --  Open a tunnel through a remote server

Description

resource ssh2_tunnel (resource session, string host, int port)


Open a socket stream to an arbitrary host/port by way of the currently connected SSH server.

Пример 1. Opening a tunnel to an arbitrary host
<?php

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

ssh2_auth_pubkey_file($connection, 'username', 'id_dsa.pub', 'id_dsa');

$tunnel = ssh2_tunnel($connection, '10.0.0.101', 12345);

?>

See Also: ssh2_connect(), and fsockopen()

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

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