Sadly that did not work. We can see the password being asked for and sent but the remote server is then denying access:

# looking for user/password prompt # matching against (?i-xsm:(user|name|login)?[:?]\s*$) # sending password # checking timeout, max: 120, ellapsed: 0.291105031967163 # waiting for data from the pty to become available # 2 bytes readed from pty: debug3: packet_send2: adding 40 (len 82 padlen 6 extra_pad 64) debug2: we sent a password packet, wait for reply 0d 0a + | .. # looking for password ok # password authentication done Authenticated with partial success. debug1: Authentications that can continue: password,publickey debug2: we did not send a packet, disable method debug1: No more authentication methods to try. Permission denied (password,publickey).

We will try and get the remote server ssh configuration from the customer in case they are using some strange settings so we can duplicate on our systems.

Thank you for you help and please do include this scenario as an option for the module as it appears to be a security policy in the financial sector.


In reply to Re^2: Does Net::SFTP::Foreign support identity file and user password? by Tanoti
in thread Does Net::SFTP::Foreign support identity file and user password? by Tanoti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.