in reply to Net::SSH::Perl trouble from withing PHP
I have fully tested this and it works just fine from the cli. But, it does not complete when I call it from PHP.
If you don't provide a identity_files key, Net::SSH::Perl tries to find one via $ENV{HOME}/.ssh/known_hosts. Assuming you're using PHP with Apache, the apache user probably doesn't have a .ssh directory.
Try using identity_files, and make sure any files you reference are readable by the apache user. You might also try adding interactive => 0 (explained in the Net::SSH::Perl docs).
This can also be a problem with non-PHP CGIs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH::Perl trouble from withing PHP
by bfdi533 (Friar) on Jan 10, 2005 at 16:05 UTC | |
by dws (Chancellor) on Jan 11, 2005 at 06:15 UTC | |
|
Re^2: Net::SSH::Perl trouble from withing PHP
by bfdi533 (Friar) on Jan 10, 2005 at 15:16 UTC |