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


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

The hack that allows PreferredAuthentications to be set from more requires it to be passed in two arguments as follows:
... more => [ '-o', 'IdentityFile=/opt/tools/keys/ssh/sftp-test', '-o', 'PreferredAuthentications=password,keyboard-interactiv +e,publickey', '-vvv' ];

I know, this is quite ugly... I have to think about how to do that functionality accessible as a constructor argument without requiring going through the more back door.

Replies are listed 'Best First'.
Re^8: Does Net::SFTP::Foreign support identity file and user password?
by Tanoti (Initiate) on Sep 27, 2012 at 08:37 UTC
    Many thanks, that worked! Making it a constructor argument would be great but for now we can get the solution to work with the customer.