[Ssh-sftp-perl-users] sftp from apache hangs
Brought to you by:
dbrobins
From: Kate Y. <ka...@yo...> - 2011-08-29 18:11:29
|
Hey guys, 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. Here is the full log (from apache and shell, same output! This works correctly within the shell!) Thanks for your help! - Kate dev-atlas.accountservergroup.com: Reading configuration data /var/www/.ssh/config dev-atlas.accountservergroup.com: Reading configuration data /etc/ssh_config dev-atlas.accountservergroup.com: Connecting to fleet.site5.com, port 22. dev-atlas.accountservergroup.com: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 dev-atlas.accountservergroup.com: Net::SSH::Perl Version 1.34, protocol version 2.0. dev-atlas.accountservergroup.com: No compat match: OpenSSH_3.9p1. dev-atlas.accountservergroup.com: Connection established. dev-atlas.accountservergroup.com: Sent key-exchange init (KEXINIT), wait response. dev-atlas.accountservergroup.com: Algorithms, c->s: 3des-cbc hmac-sha1 none dev-atlas.accountservergroup.com: Algorithms, s->c: 3des-cbc hmac-sha1 none dev-atlas.accountservergroup.com: Entering Diffie-Hellman Group 1 key exchange. dev-atlas.accountservergroup.com: Sent DH public key, waiting for reply. dev-atlas.accountservergroup.com: Received host key, type 'ssh-dss'. dev-atlas.accountservergroup.com: Host 'fleet.site5.com' is known and matches the host key. dev-atlas.accountservergroup.com: Computing shared secret key. dev-atlas.accountservergroup.com: Verifying server signature. dev-atlas.accountservergroup.com: Waiting for NEWKEYS message. dev-atlas.accountservergroup.com: Send NEWKEYS. dev-atlas.accountservergroup.com: Enabling encryption/MAC/compression. dev-atlas.accountservergroup.com: Sending request for user-authentication service. dev-atlas.accountservergroup.com: Service accepted: ssh-userauth. dev-atlas.accountservergroup.com: Trying empty user-authentication request. dev-atlas.accountservergroup.com: Authentication methods that can continue: publickey,gssapi-with-mic,password. dev-atlas.accountservergroup.com: Next method to try is publickey. dev-atlas.accountservergroup.com: Next method to try is password. dev-atlas.accountservergroup.com: Trying password authentication. dev-atlas.accountservergroup.com: Login completed, opening dummy shell channel. dev-atlas.accountservergroup.com: channel 0: new [client-session] dev-atlas.accountservergroup.com: Requesting channel_open for channel 0. dev-atlas.accountservergroup.com: channel 0: open confirm rwindow 0 rmax 32768 dev-atlas.accountservergroup.com: channel 1: new [client-session] dev-atlas.accountservergroup.com: Requesting channel_open for channel 1. dev-atlas.accountservergroup.com: Sending subsystem: sftp dev-atlas.accountservergroup.com: Requesting service subsystem on channel 1. dev-atlas.accountservergroup.com: channel 1: open confirm rwindow 0 rmax 32768 dev-atlas.accountservergroup.com: sftp: Sending SSH2_FXP_INIT |