diff options
author | Fabian Stelzer <fs@gigacodes.de> | 2021-09-10 20:07:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-10 14:15:52 -0700 |
commit | fd9e226776d1874af36b6b02fb2002b917af42fa (patch) | |
tree | da80798e14ecfd3bd50b5cee32cf211b6e1c53f1 /Documentation/config/gpg.txt | |
parent | ssh signing: add ssh key format and signing code (diff) | |
download | tgif-fd9e226776d1874af36b6b02fb2002b917af42fa.tar.xz |
ssh signing: retrieve a default key from ssh-agent
If user.signingkey is not set and a ssh signature is requested we call
gpg.ssh.defaultKeyCommand (typically "ssh-add -L") and use the first key we get
Signed-off-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/gpg.txt')
-rw-r--r-- | Documentation/config/gpg.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt index 88531b15f0..9b95dd280c 100644 --- a/Documentation/config/gpg.txt +++ b/Documentation/config/gpg.txt @@ -33,3 +33,9 @@ gpg.minTrustLevel:: * `marginal` * `fully` * `ultimate` + +gpg.ssh.defaultKeyCommand: + This command that will be run when user.signingkey is not set and a ssh + signature is requested. On successful exit a valid ssh public key is + expected in the first line of its output. To automatically use the first + available key from your ssh-agent set this to "ssh-add -L". |