PDA

View Full Version : [ubuntu] Weird SSH2 PHP Issue



Jason Giedymin
January 12th, 2010, 03:03 AM
I'm having an issue with SSH2 lib (0.11) for PHP. Can't find the reason anywhere. Thought I'd pose the question here.

Given:

Ubuntu Karmic.
sshd config set to accept password.
user with password set.
ssh is listening, checked via netstat
running ssh I can log in fine
running ssh_exec i can execute a script to echo into a file i choose


The issue: I get timeouts on the stream, and can't read it. Even though the commands execute.

What could possibly be the reason why?

Jason Giedymin
January 14th, 2010, 09:43 PM
Update: Ditched PHP-SSH (v0.11) , moved on to PHPSECLIB.

Even when working it wasn't 100% (PHP-SSH2).