How to use gpg command-line to check passphrase is correct

后端 未结 4 1313
谎友^
谎友^ 2021-01-30 00:35

I am trying to automate backups with duplicity, but when I test the result, I get

gpg: public key decryption failed: bad passphrase

4条回答
  •  耶瑟儿~
    2021-01-30 01:28

    For me the simplistic way to check the passphrase is to use gpg --passwd shorthand. It tries to change the passphrase and the step is to confirm the old passphrase, and then you can click 'cancel' on the new passphrase prompt and this keeps the passphrase intact.

    gpg --passwd 
    

提交回复
热议问题