Hmm, what is using ssh keys going to gain you? To use the
ssh keys to access another system, you either need the
passphrase, or there should not be a passphrase. The former
requires you to store the passphrase in the script (giving
you the same problems as storing a password), the latter
solution requires you to rely on the filesystem security -
which gives you the same problems as storing passwords in
a seperate file.
It's easy to say that passwords should never be scripted. But
it's a bit harder to avoid that. As a sysadmin, you will eventually
get tired of driving to work every night at 2 am to type in the
passwords for the nightly scripts that are run.
I usually deal with the problem of chmodding the script to
have permission 700. Along with a umask of 077. And of course,
users don't belong on servers anyway.
Abigail
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.