in reply to Perl Net::SFTP::Foreign password authentication . No key exchange setup can be done

Just...
my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $password);
If that doesn't work, enable debugging for both the module and ssh and post here the output:
$Net::SFTP::Foreign::debug =-1; my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $password, more => '-vvv');
  • Comment on Re: Perl Net::SFTP::Foreign password authentication . No key exchange setup can be done
  • Select or Download Code

Replies are listed 'Best First'.
Perl LDAP Search - To return total number of people from an LDAP group
by Yedu (Acolyte) on Jun 27, 2016 at 18:40 UTC
    I am trying to find the total number of people present in an LDAP group. Can you please help me in getting the count from the LDAP group(based on the DN) using Net::LDAP in Perl? Also, can you please suggest what could be the filter to be applied to get the number of people? Thanks, Edu
      Use the stderr_fh or stderr_discard constructor options to redirect that banner to a file or just discard it respectively.