$Net::SFTP::Foreign::debug = 1; my $sftp = Net::SFTP::Foreign->new( $Server, user => $User, password => $Pass, more => '-vvv' );