summaryrefslogtreecommitdiff
path: root/bin/ssh_sk_clean
blob: 1f3265857a6ac35714c4ddf64cfafa2d151fc22c (plain)
1
2
3
4
5
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