我有一个公共/私人GPG密钥对。当我尝试gpg --import
公用密钥或专用密钥时,仅公用密钥环被更新:
[root@ip-10-24-5-35 ~]# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub 4096R/A6E928B1 2018-07-02
uid saids_ftp (some description) <said@example.com>
sub 4096R/5010A53E 2018-07-02
[root@ip-10-24-5-35 ~]# gpg --list-secret-keys
[root@ip-10-24-5-35 ~]#
后来,当我尝试解密文件时,得到以下输出:
[root@ip-10-24-5-35 raw]# gpg --decrypt file.txt.gpg
gpg: encrypted with RSA key, ID FFAB8C83
gpg: encrypted with RSA key, ID D66EFA2A
gpg: encrypted with RSA key, ID 2FA063D3
gpg: encrypted with RSA key, ID 038D4A79
gpg: encrypted with ELG key, ID D5D81FBC
gpg: encrypted with RSA key, ID 45ED8372
gpg: encrypted with RSA key, ID CC1446EE
gpg: encrypted with 4096-bit RSA key, ID 5010A53E, created 2018-07-02
"saids_ftp (some description) <said@example.com>"
gpg: encrypted with RSA key, ID 75BB9DFE
gpg: encrypted with RSA key, ID B2ECF5E4
gpg: encrypted with ELG key, ID 2AD775F8
gpg: encrypted with RSA key, ID B5F82E2E
gpg: encrypted with RSA key, ID D8098B00
`enter code here`gpg: decryption failed: No secret key
我的私钥有问题吗?我不确定过去的导出方式,因为创建密钥的服务器不再可用。