my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $password, more => [-o => 'PreferredAuthentication=publickey,password']);