diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-06-23 13:31:17 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-23 13:31:17 +0200 |
commit | fac3242f9f2aa0657d354df097934cec0ed398c9 (patch) | |
tree | d14aa3c5050192e0516831b450e476e400521aeb /bin/ssh_sk_clean | |
parent | bf0a1b6bd5eb60d9e8a751d065ff6f2db36391a9 (diff) |
bin: add ssh_sk_clean
Installed in the desktop profile.
Diffstat (limited to 'bin/ssh_sk_clean')
-rwxr-xr-x | bin/ssh_sk_clean | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ssh_sk_clean b/bin/ssh_sk_clean new file mode 100755 index 0000000..1f32658 --- /dev/null +++ b/bin/ssh_sk_clean @@ -0,0 +1,6 @@ +#!/bin/sh +# remove all FIDO keys from the SSH agent +fido_keys=$(ssh-add -L|grep '^sk-') +if [ -n "${fido_keys}" ]; then + echo "${fido_keys}" | ssh-add -d /dev/stdin +fi |