I have been following the directions here: http://kevin.vanzonneveld.net/techblog/ ... _with_php/
Everything was going great until I get to the command 'pecl install -f ssh2'. I have also tried it with ssh-0.11.2 and ssh-beta. I continue to get this error:
No releases available for package "pecl.php.net/ssh2"
install failed
Any guess as to why it fails in this manner? Any other way I can get SSH2 installed? I've also done the first part of the steps: 'aptitude install libssh2-1-dev libssh2-php' and I get the 'ssh2' return when I run 'php -m |grep ssh2', but my script just comes up blank.
Code: Select all
$ssh_con = ssh2_connect($host, 22);
if (ssh2_auth_password($ssh_con, "username", "password")){
echo "Authentication Successful!";
}
else {
die("Authentication Failed . . .');
}