in reply to Preferred authentication in Net::SFTP::Foreign

Searching for "Preferred" in Net::SFTP::Foreign yields an example where you can explicitly supply that option. Or maybe I'm misunderstanding where your problem is. Do you want to specify all options in ~/.ssh/config? From a quick reading of Net::SFTP::Foreign::Backend::Unix, it should pass through all PreferredAuthentications through, but if you need per-host variations, you'll have to solve that on the Perl side maybe.

Replies are listed 'Best First'.
Re^2: Preferred authentication in Net::SFTP::Foreign
by mithunbh (Novice) on Feb 08, 2016 at 22:31 UTC
    And that is where my problem is - if I have to configure PreferredAuthentication I would do it in .ssh/config which will be honored by SSH/SFTP and everyone else.

    Unfortunately Net::SFTP::Foreign has chosen to override PreferredAuthentication and tried to do some sort of autodetection where none is really required.

    I am really considering just forking off Net::SFTP::Foreign::Backend::Unix and purge that craziness :)