The scenario we are trying to handle is where the public key is used for authentication followed by password. This is handled correctly by SFTP without any special commands or configuration.
Our .ssh/config also has PreferredAuthentication correctly set. This is becoming a very common setup in the Financial domain and I have also seen older posts on perlmonk where people have requested this to work automatically.
My only issue is that there is no control over PreferredAuthentication in a generic way - I can't turn off the autodetection and I can't see any benefit in the autodetection either. Could you please share what exactly was being addressed by the override - the ssh library does honor .ssh/config so why would we be forced to pass the PreferredAuthentication if sftp doesn't need it by default ?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.