Problems with PECL/SSH2
Posted: Fri Mar 18, 2011 5:30 pm
I'm new to Linux and just started learning a bit of php. Currently, I'm running Ubuntu 10.10 and have been trying to get SSH2 installed.
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.
That's all I have for the script now and I just get a blank page ($host, username and password are all correctly entered in my script).
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 . . .');
}