in reply to
Re^2: Does Net::SFTP::Foreign support identity file and user password?
in thread Does Net::SFTP::Foreign support identity file and user password?
Maybe you have to change the order of the PreferredAuthentications tokens to suit the server:
my $sftp = Net::SFTP::Foreign->new($host,
user => $user,
password => $password,
more => [-o => 'PreferredAuthentica
Could you include the full debugging output from the ssh binary when called from Net::SFTP::Foreign and also when you do it by hand to see what is being done differently?