adding use diagnostics gives the below:
asmodeus: Connection established. asmodeus: Sent key-exchange init (KEXINIT), wait response. asmodeus: Algorithms, c->s: 3des-cbc hmac-sha1 none asmodeus: Algorithms, s->c: 3des-cbc hmac-sha1 none asmodeus: Entering Diffie-Hellman Group 1 key exchange. asmodeus: Sent DH public key, waiting for reply. asmodeus: Received host key, type 'ssh-dss'. asmodeus: Host 'host2.mydomain.com' is known and matches the host key. asmodeus: Computing shared secret key. asmodeus: Verifying server signature. asmodeus: Waiting for NEWKEYS message. asmodeus: Enabling incoming encryption/MAC/compression. asmodeus: Send NEWKEYS, enable outgoing encryption/MAC/compression. asmodeus: Sending request for user-authentication service. asmodeus: Service accepted: ssh-userauth. asmodeus: Trying empty user-authentication request. asmodeus: Authentication methods that can continue: publickey,keyboard +-interactive. asmodeus: Next method to try is publickey. Permission denied at ./ssh_test.pl line 20 (#1) (F) The setuid emulator in suidperl decided you were up to no good +. Uncaught exception from user code: Permission denied at ./ssh_test.pl line 20 at /usr/local/share/perl/5.8.8/Net/SSH/Perl.pm line 258 Net::SSH::Perl::fatal_disconnect('Net::SSH::Perl::SSH2=HASH(0x +888ac20)', 'Permission denied') called at /usr/local/share/perl/5.8.8 +/Net/SSH/Perl/SSH2.pm line 66 Net::SSH::Perl::SSH2::login('Net::SSH::Perl::SSH2=HASH(0x888ac +20)', 'user', 'password') called at ./ssh_test.pl line 20 Uncaught exception from user code: Permission denied at ./ssh_test.pl line 20 at /usr/local/share/perl/5.8.8/Net/SSH/Perl.pm line 258 Net::SSH::Perl::fatal_disconnect('Net::SSH::Perl::SSH2=HASH(0x +888ac20)', 'Permission denied') called at /usr/local/share/perl/5.8.8 +/Net/SSH/Perl/SSH2.pm line 66 Net::SSH::Perl::SSH2::login('Net::SSH::Perl::SSH2=HASH(0x888ac +20)', 'user', 'password') called at ./ssh_test.pl line 20

The user/password it prints are the correct ones


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.