Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Net::OpenSSH help needed

by salva (Monsignor)
on Jul 30, 2013 at 13:09 UTC ( #1047016=note: print w/ replies, xml ) Need Help??


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

debug1: Authentication succeeded (password).

The remote server is accepting your user/password pair as valid!

You are probably talking to a miss-implemented or miss-configured SSH server. Try asking your administrator or the provider of the box.

Try also, connecting from the command line adding the -vvv flags to the ssh command. What do you get?


Comment on Re^5: Net::OpenSSH help needed
Select or Download Code
Re^6: Net::OpenSSH help needed
by Andy16 (Acolyte) on Jul 30, 2013 at 13:48 UTC
    hi - thanks!!

    cmd line with debug results in:
    debug1: Authentication succeeded (password).
    debug1: Entering interactive session.

    and hangs 'till I kill it...

    mean while I tried to reduce ssh timeout to 15 seconds
    => I can trap almost all of the cases now, but (grrrrr) sometimes the boxes don't wait for the minute and I'm back to the beginning.

    no chance to work on the boxes for me...

    Any idea how I can catch that issue within my program??

    please...
    :-)

    and what's the meaning of that "-x2MN"?

    thanks a lot for your help

      and what's the meaning of that "-x2MN"?

      -x enables X11 forwarding
      -2 forces ssh to only try protocol version 2
      -M places it into master mode for connection sharing
      -N tells it not to execute a remote command (just forward ports, only works with -2)

      Can you post the exact line you are using to run ssh from the command line.

      The meaning of the x 2 M N flags is explained in detail on the ssh manpage.

        hi, -x2MN => sorry, my fault, thought it was ONE arguemnt... tststs...

        time ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -x2M -o NumberOfPasswordPrompts=1 -o PreferredAuthentications=keyboard-interactive,password -l willnotwork MYDEVICE

        Welcome
        willnotwork@MYDEVICE's password:
        invalid login or password
        password:
        Connection to MYDEVICE closed.

        real 2m4.753s
        user 0m0.009s
        sys 0m0.006s


        I typed pwd only ONCE!
        (Watch out - no N given!)




        time ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -x2MN -o NumberOfPasswordPrompts=1 -o PreferredAuthentications=keyboard-interactive,password -l willnotwork MYDEVICE

        Welcome
        willnotwork@MYDEVICE's password:
        invalid login or password
        password:




        I typed pwd only ONCE!
        and it hangs after that - and should be cought by timeout!
        Right?

        thanks for help

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-10-25 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls