Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Is Net::SSH::Perl broken for login via explicit user/password?

by tphyahoo (Vicar)
on Dec 19, 2006 at 09:57 UTC ( #590631=note: print w/ replies, xml ) Need Help??


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 :)


Comment on Re^2: Is Net::SSH::Perl broken for login via explicit user/password?
Select or Download Code
Re^3: Is Net::SSH::Perl broken for login via explicit user/password?
by shmem (Canon) 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}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-09-01 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (298 votes), past polls