I am finding that apache environment lacks something that bash has to make an ssh request. The question is, is there any way to bring that something in, or do I have to run SSH/SFTP requests from shell?
I am running an sftp login with username and password using Net:::SFTP. Debug logs are identical from the shell and apache. The only differences are that
a) the one from Apache runs an order of magnitude slower (I wonder why?) b) most importantly, it hangs at
sftp: Sending SSH2_FXP_INIT
I have tried to do all I could to make the environment similar, but without knowing what to look for, didn't hit the solution yet.
I am running apache 2.2.3, mod_perl 2.0.4, perl 5.8.8, Net::SFTP 0.10, OpenSSL 0.9.8 . No interesting parameters sent to Net::SFTP constructor, just debug.
Thanks for your help!