OK, so I found that suidperl is installed on the remote server that the login failures are happening on. It is NOT on the local server, or the host1 which is working.

Because of the error that is given, and the difference of suidperl being installed, I am going to assume that's where my problem is at the moment. Unfortunately, I don't have enough access on the remote server to disable/un-install it.

From what I have read (admittedly a very fast read through), suidperl changes the user that the script runs as. I am confused as to whether it automatically runs it as root, or tries to make it run as the id that started the script on the local server. I suspect it tries as root because it doesn't even list user/pass pair in the auth methods it would attempt to try (root login disabled). Although, I did try and create a local id matching the login id of the remote server and running it that way, but still the same error.

I am confused as to why this would affect it before the login is complete though.

So, for the time being, I believe I am stuck. I'm off to learn more about suidperl and possibly Expect (and I've tried for two years to avoid Expect :-D ).

Thanks so much for the pointers, and if I come up with something new to try, I will post back and let everyone know how it worked out.


In reply to Re^2: Net:SSH:Perl not going to password auth by stikboy
in thread Nett:SSH:Perl not going to password auth by stikboy

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.