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

Hi Salva,

I have downloaded the new version of the module, but I am still having problems.

With the changes, Expect doesn’t seem to be getting the Password prompt. The connection hangs for the timeout value and then returns "Password not requested as expected: 0".

Any ideas as to why this could be? Its probably me being stupid but I have hit a wall again with my investigation.

Thanks for your help!

Alistair

  • Comment on Re^2: Net::SFTP::Foreign Connections with Password Authentication

Replies are listed 'Best First'.
Re^3: Net::SFTP::Foreign Connections with Password Authentication
by salva (Canon) on Jun 01, 2008 at 17:16 UTC
    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?

      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.