my $s=Net::SFTP::Foreign->new( 'foo@bar', password=>'...', expect_log_user => 1, timeout => 8, more => '-v' ); die $sftp->error if $sftp->error;