我使用通行证已经很长时间了;但是将密钥存储和gpg密钥导出到另一台机器后,我看到以下输出:
$ gpg --list-key
/home/shved/.gnupg/pubring.gpg
------------------------------
pub 2048R/FA829B53 2015-04-28
uid [ultimate] Yury Shvedov (shved) <shved@lvk.cs.msu.su>
sub 2048R/74270D4A 2015-04-28
我的密钥已导入并值得信任,但无法使用:
pass insert test
Enter password for test:
Retype password for test:
gpg: 2048R/FA829B53: skipped: No public key
gpg: [stdin]: encryption failed: No public key
fatal: pathspec '/home/shved/.password-store/test.gpg' did not match any files
我该怎么做才能再次使用我的钥匙?
gpg
不使用gpg2
。而gpg2只是重新设计。只有2.1版本做了一些改变来(公共密钥环相结合的公钥和私钥。