Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^11: Net::OpenSSH help needed

by salva (Abbot)
on Jul 31, 2013 at 09:51 UTC ( #1047224=note: print w/ replies, xml ) Need Help??


in reply to Re^10: Net::OpenSSH help needed
in thread Net::OpenSSH help needed

That server implementation of the SSH protocol is completely broken.

During the authentication stage it accepts any password as valid but then once the connection is established, when a new channel is open and a command send it replies with a "invalid password" error and then asks for a new one.

You will have to experiment yourself in order to find a workaround for that.

Maybe you could run a dummy command with Expect in order to detect the bad-password state once the session is established. See how to integrate Net::OpenSSH and Expect here.


Comment on Re^11: Net::OpenSSH help needed
Re^12: Net::OpenSSH help needed
by Andy16 (Acolyte) on Jul 31, 2013 at 10:27 UTC
    Hi Salva,
    I knew it's a strange box
    and I know that handling idiots is difficult...

    just hoped to get a method for free :->

    I'll dig on - thanks a lot for your help and input!!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-12-20 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls