<?xml version="1.0" encoding="windows-1252"?>
<node id="995776" title="Re^7: Does Net::SFTP::Foreign support identity file and user password?" created="2012-09-26 10:03:14" updated="2012-09-26 10:03:14">
<type id="11">
note</type>
<author id="446266">
salva</author>
<data>
<field name="doctext">
The hack that allows PreferredAuthentications to be set from &lt;c&gt;more&lt;/c&gt; requires it to be passed in two arguments as follows:

&lt;c&gt;
...
more =&gt; [ '-o', 'IdentityFile=/opt/tools/keys/ssh/sftp-test',
          '-o', 'PreferredAuthentications=password,keyboard-interactive,publickey',
          '-vvv' ];
&lt;/c&gt;

&lt;p&gt;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 &lt;c&gt;more&lt;/c&gt; back door.



</field>
<field name="root_node">
995340</field>
<field name="parent_node">
995771</field>
</data>
</node>
