私はgpg-agentをsshエージェントとして動作させようとしていますが、幸運なことはありません。私はLinux Mint(Sarah)のKDE版を実行しています。はsshエージェントとしてgpg-agentを使用できません
> $ cat ~/.gnupg/gpg-agent.conf
enable-ssh-support
:次に
# $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
#use-ssh-agent
use-session-dbus
、私はGPG-エージェントでのssh-agentのサポートを有効に:
まず、私は内蔵の/etc/X11/Xsession.optionsをでSSHエージェント無効
> $ echo $GPG_AGENT_INFO
/home/jeroen/.gnupg/S.gpg-agent:0:1
> $ echo $SSH_AUTH_SOCK
/home/jeroen/.gnupg/S.gpg-agent.ssh
ただ、他のエージェントが実行されていないことを確認する:01私は私のPCを再起動して、私の環境変数を確認し、この時点で
> $ ps aux | grep agent
jeroen 5072 0.0 0.0 282604 764 ? Ss Nov24 0:15 /usr/bin/gpg-agent --daemon
jeroen 5265 0.0 0.1 697044 29032 ? Sl Nov24 0:01 /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
jeroen 9574 0.0 0.0 130292 1016 pts/6 S+ 12:15 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn agent
これまでのところ、すべてが見栄えました。では、私のgpgキーを見てみましょう:
pub rsa2048/03AB1CB5 2015-06-12 [SC]
uid [ultimate] Jeroen Jacobs <[email protected]>
uid [ultimate] Jeroen Jacobs <[email protected]>
sub rsa2048/014F9774 2015-06-12 [E]
sub rsa2048/0FEF1A6F 2017-11-23 [A]
ご覧のとおり、認証サブキーがあります。確かにgpg-agentがこれを選んだだろうか?
ssh-add -l
The agent has no identities.
もう、私のPCをもう一度リブートしても、違いはありません。私はその話題に関するほとんどのチュートリアルを読んできました。私は本ですべてをやったと思いますが、それを働かせることはできません。
ちょうどあなたがそれを必要とする場合には、gpg2とGPG-エージェントのバージョン:
> $ gpg2 --version
gpg (GnuPG) 2.1.11
libgcrypt 1.6.5
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
> $ gpg-agent --version
gpg-agent (GnuPG) 2.1.11
libgcrypt 1.6.5
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
GPGのsshエージェントサポートは認証サブキーの抽出方法を知っていますか?私はそれが標準的なsshエージェントの代わりであると思っていたので、 'ssh-add'を使って手動でキーを追加する必要がありました。 – larsks