Problems with PECL/SSH2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
psionicswallow
Forum Newbie
Posts: 1
Joined: Fri Mar 18, 2011 5:20 pm

Problems with PECL/SSH2

Post by psionicswallow »

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.

Code: Select all

$ssh_con = ssh2_connect($host, 22);

if (ssh2_auth_password($ssh_con, "username", "password")){
	echo "Authentication Successful!";
}
else {
	die("Authentication Failed . . .');
}
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).
Post Reply