note
salva
Maybe you have to change the order of the PreferredAuthentications tokens to suit the server:
<c>
my $sftp = Net::SFTP::Foreign->new($host,
user => $user,
password => $password,
more => [-o => 'PreferredAuthentications=password,keyboard-interactive,publickey']);
</c>
<p>Could you include the full debugging output from the <c>ssh</c> binary when called from Net::SFTP::Foreign and also when you do it by hand to see what is being done differently?
995340
995510