gpg: cancelled by user

突然某天,公司的服务签名过期导致包签名失败了,于是修改过期时间如下:
gpg> expire
Changing expiration time for the primary key.
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0) 2
Key expires at Sat 11 Apr 2020 03:51:25 PM CST
Is this correct? (y/N) y

You need a passphrase to unlock the secret key for
user: "Cnangel (Search R & D Engineer) <cnangel@gmail.com>"
1024-bit DSA key, ID FC0A6073, created 2009-06-01

gpg: cancelled by user
gpg: make_keysig_packet failed: Operation cancelled

Command> passwd
Key is protected.
can't connect to `/home/search_v/.gnupg/S.gpg-agent': Connection refused

You need a passphrase to unlock the secret key for
user: "Cnangel (Search R & D Engineer) <cnangel@gmail.com>"
1024-bit DSA key, ID FC0A6073, created 2009-06-01

gpg-agent[60982]: command get_passphrase failed: Operation cancelled
gpg: cancelled by user
Can't edit this key: General error

出错了,查询资料发现是tty终端权限问题,加上权限即可:
# chmod o+rw $(tty)
解决问题。



Monthly Archives

Pages

Powered by Movable Type 7.3.1

About this Entry

This page contains a single entry by Cnangel published on April 9, 2020 6:52 PM.

多队列网卡 was the previous entry in this blog.

好久的一首歌 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.