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

后端 未结 4 1275
谎友^
谎友^ 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:02

    This is a shorter command line to check if passphrase is OK:

    gpg --export-secret-keys -a  > /dev/null && echo OK
    

提交回复
热议问题