SA-MP Forums Archive
PHP ssh2 help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: PHP ssh2 help! (/showthread.php?tid=328416)



PHP ssh2 help! - Ironboy500[TW] - 24.03.2012

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!