Pass 不要求输入密码

Pass 不要求输入密码

我正在使用通行证(http://www.zx2c4.com/projects/password-store/) 在 ubuntu 12.04 上。

过程:

apt-get install pass
gpg --gen-key
pass init <generated gpg id>
pass insert test
pass test

执行完最后一条命令后,输出如下:

gpg: gpg-agent is not available in this session
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: decryption failed: secret key not available

我到处搜索,但还没有找到为什么它不提示我输入密码的答案?我在三台 ubuntu 12.04 机器上测试过(所有机器都出现相同的错误),但当我在 mac os 10.9 上测试时,它会提示我输入密码。(这就是为什么我认为问题在于它没有提示输入密码)。

有任何想法吗?

答案1

syneticon-dj 大获全胜!将“2”附加到GPG="gpg2"/usr/bin/pass 中是一种解决方案。

谢谢!

相关内容