in reply to Re^2: Net::SFTP::Foreign mod perl
in thread Net::SFTP::Foreign mod perl

Something is going wrong on the password authentication process... it looks like ssh does not see the password until its /dev/tty stream is closed.

Can you trace the script at the OS level with strace (or similar) to see the data being exchanged between the module and the ssh process? Ensure that the full data is dumped (i.e. strace -s 100000 ...).

You may need to remove sensible information as passwords from the dump.

Which module version, perl version and OS are you using?

Replies are listed 'Best First'.
Re^4: Net::SFTP::Foreign mod perl
by scoobyrico (Beadle) on May 22, 2009 at 15:47 UTC
    I really appreciate your help with this. The sys admins are changing apache to run a single thread and I'll post that when I get it.
    [sandbox common]$ perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. [sandbox common]$ uname -a Linux *****.com 2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:39:17 EDT 2007 x +86_64 x86_64 x86_64 GNU/Linux [@sandbox common]$ cat /etc/issue CentOS release 5 (Final) Kernel \r on an \m kernel: 2.6.18-92.1.22 (CentOS 5.2 - RHEL clone, x86_64) perl: 5.8.8 perl-Net-SSH: 0.08 perl-Net-SFTP: 0.10 Apache: 2.2.3 mod_perl: 2.0.4
        Net-SFTP-Foreign-1.51