Hello Monks-

Looking for guidance on debugging the following issue:

I have generated an RSA key on my system that works fine when I use ssh(1) to access my login on either of two target hosts in my network (craigs-mac-mini or new-mac-mini).

I believe I have checked all the basic things:

My perl script to use Net::SSH::Perl is pretty simple, attached below if you are interested.

What should I do next to try and find the issue?

Thanks!

-Craig

#!/opt/homebrew/bin/perl # # ssh -v -o "IdentityFile=$HOME/.cmvtools/toolauth" new-mac-mini # use strict; use warnings; use Net::SSH::Perl; my $host="new-mac-mini"; # FAILS #my $host="craigs-mac-mini"; # WORKS my $cmd="ls -las /"; my $user="cmv"; my $ssh = Net::SSH::Perl->new($host, debug=>1, protocol=>2, interactive=>0, identity_files =>[ "/Users/cmv/.cmvtools/toolauth" ], ); $ssh->login($user); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print "stdout=$stdout\n"; print "stderr=$stderr\n"; print "exit=$exit\n";

In reply to Successful RSA key fails with Net::SSH::Perl by cmv

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.