We have a problem on my servers on ssh2.
My PHP program failed on :
if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist");
When I do :
php -a
$result = ssh2_connect('localhost',PORT);
=> it is running ok.
A short script executed with Putty :
<?php
if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist");
$connection = ssh2_connect(IP, PORT);
echo "<p style='color:green;'>ssh2_connect: Ok</p>";
ssh2_auth_password($connection, 'root', PWD);
echo "<p style='color:green;'>pas