gpg: add sshcontrol with script to get grip
This commit is contained in:
parent
3f48e9f050
commit
1c84af82ab
11
dot_local/share/private_gnupg/sshcontrol.tmpl
Normal file
11
dot_local/share/private_gnupg/sshcontrol.tmpl
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# List of allowed ssh keys. Only keys present in this file are used
|
||||||
|
# in the SSH protocol. The ssh-add tool may add new entries to this
|
||||||
|
# file to enable them; you may also add them manually. Comment
|
||||||
|
# lines, like this one, as well as empty lines are ignored. Lines do
|
||||||
|
# have a certain length limit but this is not serious limitation as
|
||||||
|
# the format of the entries is fixed and checked by gpg-agent. A
|
||||||
|
# non-comment line starts with optional white spaces, followed by the
|
||||||
|
# keygrip of the key given as 40 hex digits, optionally followed by a
|
||||||
|
# caching TTL in seconds, and another optional field for arbitrary
|
||||||
|
# flags. Prepend the keygrip with an '!' mark to disable it.
|
||||||
|
{{ output "sh" "-c" "gpg -K --with-keygrip | grep -A1 \"\\[A\\]\" | tail -n1 | sed \"s,.*Keygrip = ,,\"" }}
|
Loading…
Reference in New Issue
Block a user