hi This may help you..
If you want to generate keys using SSH for automatic login / passwordl +ess login then follow the steps A -> your server where from you want to login remote servers B, C servers you want to monitor --------- - login to A - ssh-keygen -t rsa ENTER - ENTER - ENTER - chmod 600 $HOME/.ssh/id_rsa - cat $HOME/.ssh/id_rsa.pub - copy this into 1 line into $HOME/.ssh/authorized_keys file of server + B and C. It can be first time you have to login each server manually, but since + 2nd try it login automatically. => you can copy the id_rsa.pub too with scp like this: cd .ssh/ scp id_rsa.pub username@12.18.1.3:./authorized_keys
this is how the passwordless logins are made.if you want to run multiple commands do use '|' symbol and regarding the Net::SSH is also a best option to access the devices remotely and it is secure than telnet. i have done a project using NET::TELNET::CISCO to login into network devices and check for certain parameters.

In reply to Re^2: Installing Net::SSH::Perl on OS X, or how to run commands remotely by pingme8705
in thread Installing Net::SSH::Perl on OS X, or how to run commands remotely by kazeeks

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.