Introduction This article describes a problem that I ran into while developing an SSH application with PHP 8.0 on Windows 10 and the solution. Environment Windows 10 Professional XAMPP 8.0.6 – 2021-05-11 PHP 8.0.6 Example Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$connection = ssh2_connect($host, $port, array('hostkey'=>'ssh-rsa')); if (ssh2_auth_pubkey_file( $connection, $username, $filename_pub, $filename_prv, $filename_pwd)) { echo "Public Key Authentication Successful\n"; } else { die('Public Key Authentication Failed'); } |
The problem line… Continue Reading →
© 2022 John Hanley — Powered by WordPress
Theme by Anders Noren — Up ↑