http://qs321.pair.com?node_id=590631


in reply to Re: Is Net::SSH::Perl broken for login via explicit user/password?
in thread Is Net::SSH::Perl broken for login via explicit user/password?

Seems like what I really should have done is look in the /eg dir of the distribution, as the docu suggests somewhere that eluded my first scan. This has

http://search.cpan.org/src/DBROBINS/Net-SSH-Perl-1.30/eg/cmd.pl

which seems to accomplish what I want without interactive => 1 in the constructor. (But I haven't actually tried if it works yet ;) )

UPDATE: Well, I tried it and YOU ARE RIGHT.

You need interactive => 1

The sample script they give there is busted. I guess it is time to fire up rt :)

Replies are listed 'Best First'.
Re^3: Is Net::SSH::Perl broken for login via explicit user/password?
by shmem (Chancellor) on Dec 19, 2006 at 10:10 UTC
    Well... running that code confirms what I wrote. Log follows.

    and with line 116 in Net::SSH::Perl::AuthMgr commented out:

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}