$connection = ssh2_connect('machine.mon-site.tld', 22, array('hostkey'=>'ssh-dss')); echo ssh2_fingerprint($connection, SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_HEX);