无法在linux中生成gpg密钥
发布时间:2021-01-11 21:50:59 所属栏目:Linux 来源:互联网
导读:我无法在 linux中生成GPG密钥 sudo gpg --gen-key # This is the command to try to generate key 错误 You need a Passphrase to protect your secret key.gpg: problem with the agent: Timeout gpg: Key gene
我无法在 linux中生成GPG密钥 sudo gpg --gen-key # This is the command to try to generate key 错误 You need a Passphrase to protect your secret key. gpg: problem with the agent: Timeout gpg: Key generation canceled. 请告诉我我在哪里做错了 解决方法请检查一下1)运行gpg-agent命令: gpg-agent --daemon --use-standard-socket --pinentry-program /usr/bin/pinentry-curses 2)生成足够的熵 sudo rngd -r /dev/urandom 3)最后运行gpg命令生成密钥: gpg --gen-key 请仅使用非root用户运行所有命令 请使用相同的用户登录,该用户用于创建gpg密钥. 1.我们将导出我们的公钥和私钥如下: user$gpg --export -a -o mypublickey.txt user@replaceurmail.com user$gpg --export-secret-key -a -o myprivatekey.txt user@replaceurmail.com user$ls my* myprivatekey.txt mypublickey.txt >使用相同用户导入密钥 User$gpg --import myprivatekey.txt >现在尝试用同一个用户解密 (编辑:哈尔滨站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – 文件的物理大小在哪种情况下要小于逻辑大小?
- 与CURL Multi PHP不一致
- SAP Java:java.lang.NoClassDefFoundError:com.sap.conn.
- linux – 在线虚拟机中安全地评估perl代码
- 如何在没有find的情况下在linux shell脚本中根据日期查找和
- linux – 对象文件的objdump输出中的标志
- 用户权限 – 为什么不让开发人员接近root密码?
- linux如何同时32位和64位?或者是glibc处理的东西?
- zsh – 如何在命令行中获取上一个命令的第n个参数?
- linux – 如何在没有运行dhcpd的情况下检查dhcpd.conf语法错