Hey guys , can someone let me know how to perform the gpg encryption task , it still gives me error “- file ‘/home/encrypted_me.asc’ is not correctly encrypted with given keys on ststor01”
I am first importing the public key , after that I am encrypting the file using this command “gpg --armor -r kodekloud --encrypt /home/ecrypted_me.txt”
You can check the documentation, all you need is there.
Just faced same issue, my fault was that when I saw permission error I made change for /home to chmod 777 then all steps were fine, but in the end the task is failed…
so instead of changing permissions for /home you need to log in as root - sudo su -
then your work will be checked and reported as completed…
what a shame