Previously while generating the gpg in OEL5 I did not face any error after today when we move to OEL6 we are getting error as:
can't connect to `/home/applprd/.gnupg/S.gpg-agent': No such file or directory
We are generating the gpg using the command below in OEL5
echo 5%G@raXd |gpg --no-tty --armor --output ACH.TEST.NACHA.0112019.gpg --recipient 'firstname.lastname@example.org' --local-user TestInc --sign --encrypt --passphrase-fd 0 $ACH.TEST.NACHA.0112019
Please can you advise.
The command "$ man gpg-agent" is your friend. Make sure the gpg-agent(1) service is running. You need to change the setup commands already in your shell ".bashrc" scripts to properly setup the environment for the new version. So: read the man(1) page; change your shell setup; logout; and login. Lather-rinse-repeat as needed.