跳转到主要内容

GnuPG

gpg-agent

gpg-agent --daemon
gpgconf --kill all && gpgconf --launch gpg-agent

SSH 登录

  1. 开启 ssh 支持
echo enable-ssh-support >> ~/.gnupg/gpg-agent.conf
  1. 添加环境变量
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export GPG_TTY=$(tty)
  1. 查看 keygrip
gpg --list-keys --with-keygrip
  1. 添加 sshcontrol
echo [keygrip] >> ~/.gnupg/sshcontrol