Dans :
Fonctions PHP
Concepts PHP
Fonctions MySQL
Fonctions HTML
Forum PHP/MySQL
Cours PHP/MySQL
Scripts PHP/MySQL
ssh2_tunnel ouvre un socket vers un hôte/port arbitraire via un serveur connecté SSH.
<?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);?>
Voir aussi ssh2_connect et fsockopen .