Hello bgi,

Automatic authentication is safer that password authentication if you use a passphrase for the identity file and is the preferred method by experienced admins. To have automatic authentication and passphrase working toghether you must:

  1. Generate the pair private-public key with passphrase and
  2. use ssh-agent and ssh-add. Once you have authenticated against the "agent" all the connections will go without any additional passphrase typing.
Also, hide all the connection parameters inside a section of your ~/.ssh/config file. Something like this:
... Host rbeo user otheruser Hostname localhost Port 2048 IdentityFile /home/pp2/.ssh/ursu ...

This is the recommended way when working with GRID::Machine (rather than giving a lot of parameters in the call to the constructor)

Hope it helps

Casiano


In reply to Re: GRID::Machine with authentication by Anonymous Monk
in thread GRID::Machine with authentication by bgi

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.