标签:war his 更换密码 ack 更新 distrib height png 就是
相信大家在使用gpp的时候都会遇到这样子都情况:
此时不用担心,gpg 的密码更新特别简单。
1> 执行命令获 gpg2 --list-keys 取对应key-id
$ gpg2 --list-keys ... pub rsa2048 2019-04-12 [SC] [有效至:2021-04-11] 9A1640F7A2551131612D51B12D83594B7B29D86A uid [ 绝对 ] xiaoxuetu <xiaoxuetu@163.com> sub rsa2048 2019-04-12 [E] [有效至:2021-04-11]
2> 执行命令进 gpg2 --edit-key ${you key id} 入gpg 命令行
$ gpg2 --edit-key 9A1640F7A2551131612D51B12D83594B7B29D86A
... gpg (GnuPG) 2.2.17; Copyright (C) 2019 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Secret key is available. sec rsa2048/2D83594B7B29D86A created: 2019-04-12 expires: 2021-04-11 usage: SC trust: ultimate validity: ultimate ssb rsa2048/2D83594B7B29D86A created: 2019-04-12 expires: 2021-04-11 usage: E [ultimate] (1). xiaoxuetu <xiaoxuetu@163.com> gpg>
3> 执行 passwd 命令,此时会弹窗,如图填入当前密码和新密码即可
4> 密码修改完成后,输入 save 保存修改
gpg 私钥的密码修改就是这么简单,如果过程中有疑问,欢迎评论留言咨询。
标签:war his 更换密码 ack 更新 distrib height png 就是
原文地址:https://www.cnblogs.com/xiaoxuetu/p/11279849.html