http://www.perlmonks.org?node_id=995510


in reply to Re: Does Net::SFTP::Foreign support identity file and user password?
in thread Does Net::SFTP::Foreign support identity file and user password?

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.