ssh2_fingerprint

PECL ssh2 >= 0.9.0
ssh2_fingerprint - Retrieve fingerprint of remote server
Manual
Code Examples

Example #1 Checking the fingerprint against a known value

PHP Version: