PHP ssh2 help!
#1

Hello,
I'm having apache2, PHP5 and ssh2 module installed on my VPS, and I'm trying to run a following command to connect to a OVH dedicated server.

Код:
$Connection = ssh2_connect("***.***.***.***", 22);
ssh2_auth_password($Connection, "root", "********");
I'm sure login info is alright, because I'm using it with putty and it works fine. Here's the error I'm getting:

Код:
Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-3): Error sending banner to remote host in /var/www/test.php on line 2

Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect ***.***.***.*** in /var/www/test.php on line 2
Any ideas how to sort it out and succesfully connect?
Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)