salva, I'm not BernieC, but when answering in another thread, I saw something, in this simplified SSCCE:

#!/usr/bin/env perl # abbreviated version of https://perlmonks.org/?node_id=1220377 use warnings; use strict; use Net::SSH2 ':all'; use Config; print STDERR "\n__DATA__\n\n"; print STDERR "\$] => $]\n"; print STDERR "$_ => $Config{$_}\n" for qw/archname osname osvers/; print STDERR "\n\nshell02.theworld.com:\n"; my $ssh2 = Net::SSH2->new(); my $rv = $ssh2->connect('shell02.theworld.com') or $ssh2->die_with_err +or; $rv = $ssh2->auth_list() or $ssh2->die_with_error; + print STDERR "\tauth_list => $rv\n"; $rv = $ssh2->auth_password_interact('dummyuser') or $ssh2->die_with_er +ror; print STDERR "\tauth_password_interact +=> $rv\n"; # this wouldn't work on my strawberry perl: "Non-blocking ReadLine + is not supported on this architecture" __DATA__ $] => 5.026002 archname => MSWin32-x64-multi-thread osname => MSWin32 osvers => 10.0.16299.371 shell02.theworld.com: auth_list => publickey,keyboard-interactive dummyuser's password? Non-blocking ReadLine is not supported on this a +rchitecture at C:/usr/local/apps/berrybrew/perls/5.26.2_64_PDL/perl/v +endor/lib/Net/SSH2.pm line 314.

Do you know of a way to get auth_password_interact() to work with Strawberry Perl's version of ReadLine?


In reply to Re^5: Can't get $ssh2->check_hostkey to work by pryrt
in thread Can't get $ssh2->check_hostkey to work by BernieC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.