This doesn't seem a Perl-specific question. It's rather ssh-specific. I understand you'll be using Perl to interact with that target host but having that password expire is something you need to address in Perl (make sure you get and use the new password when the old one expires), once it's set up on the other host (nothing to do with Perl there).

I suspect you're talking about the rsa public password authentication scheme where you generate your public key and then send it to the other host for "keyless" authentication. If that is the case, I think there's little you can do. I just verified and changing the user password manually won't generate a new public key. If you're talking about the user login password, setting it to expire is a Linux admin issue (plus will probably have to be changed manually once you set it up).

I recommend posting your question to Linux forums (linuxquestions.org is one example) where you can get better answers than here (or at least better than mine, anyway :) ).


In reply to Re: Expiring Password by RaduH
in thread Expiring Password by 3SRT

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.