in reply to Re^2: Net::SFTP::Foreign Connections with Password Authentication
in thread Net::SFTP::Foreign Connections with Password Authentication

try setting the expect_log_user option on the constructor call to see the Expect interaction. And also run ssh with the verbose flag:
my $s=Net::SFTP::Foreign->new( 'foo@bar', password=>'...', expect_log_user => 1, timeout => 8, more => '-v' ); die $sftp->error if $sftp->error;

And BTW, is the remote system accessible from the Internet so I can run some tests against it?

Replies are listed 'Best First'.
Re^4: Net::SFTP::Foreign Connections with Password Authentication
by allyc (Scribe) on Jun 01, 2008 at 22:11 UTC
    I will try that in the morning. Unfortunately the machines I am using are not internet facing and I don’t have access to a HPUX machine on the net :(

    I have managed to get the transfers working with 1.36 by setting the block_size to 483 and the queue_size to 1 as discussed in the bug report. It is however much slower than when running interactively.

    I will send some more debug in the morning. Thank you again for all your help!

    Alistair

      Include also the output of a ssh command connecting to the remote machine to show the authentication interaction.

      If you know how to do it, tracing the script at the OS level with truss would also help (is it called "tusc" for HP-UX?). In order to not reveal your password use an incorrect one... unless you can set up a testing account with a dummy password on the server just for that.

      Send everything directly to me by email or attach it to the bug report in rt.cpan.org.

      And BTW, can you check also version 1.37_06? Maybe I have introduced some regression on the last release.