... $connection = ssh2_connect('machine.mon-site.tld', 22, array('hostkey'=>'ssh-dss'), $callbacks); if (!$connection) die('
Echec de la connexion'); $fingerprint = '5172E2D339863712D3D26D4860D976CD'; if (ssh2_fingerprint($connection, SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_HEX) != $fingerprint) die ('
problème d\'identification du serveur: la signature reçue ne correspond pas à son empreinte enregistree!') ;