troubleshooting Question

Using encrypted password file in Linux

Avatar of ashsysad
ashsysadFlag for United States of America asked on
Unix OSLinuxLinux Security
9 Comments4 Solutions838 ViewsLast Modified:
Hello,

We have a situation like this. We have a Shell script in which we hard-coded the Password for a Production account. The script will login to another server using the hard-coded password and perform some operation.

We feel it's potentially unsafe hard-coding the password in the script, hence am wondering why don't we use an encrypted file which will contain password details and only during the execution, it will decrypt only during the execution.  Please let me know if it is possible.

I'm aware of the other options like using SSH password less keys but my management isn't convinced with it.

Thanks in advance !!
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 4 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros