“Host key verification failed” using PHP Script - CentOS
问题 I am trying to create eJabberd users using PHP script. The following script is working perfectly on my local system(Ubuntu 14.04) : <?php error_reporting(E_ALL); ini_set('display_errors', '-1'); $username = 'userx1'; $password = '123456'; $node = 'localhost'; exec('ssh -t -t <hostname> ejabberdctl register '.$username.' '.$node.' '.$password.' 2>&1', $output, $status); if($output == 0) { echo "User created successfully."; } else { // Failure, $output has the details echo '<pre>'; foreach(