Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: Does Net::SFTP::Foreign support identity file and user password?

by salva (Monsignor)
on Sep 26, 2012 at 14:03 UTC ( #995776=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^7: Does Net::SFTP::Foreign support identity file and user password?
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995776]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-08-31 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls