in reply to plaintext password in scripts run through cron

ptkdb covers the SSH side of things well.

As for any database passwords, I'd be inclined to simply store passwords in a file that is readable only by the user running the script.
Parse, do or otherwise include that file as required.

If that requires a new user and/or group just for running automated commands, so be it.

Cheers,

BazB


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.