diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-04 15:39:44 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-04 15:42:19 +0200 |
commit | 18dbadf1a02b797acb4a99b2670b022462664dd3 (patch) | |
tree | 70fbe2b3e7cd0eee845c05eb860b098fb47fd339 /bin/ssh_sk_add | |
parent | cbebddb1e856c74887cefeae03566b73fb19c1f3 (diff) |
Add more verbosity to FIDO key loading/cleaning
Diffstat (limited to 'bin/ssh_sk_add')
-rwxr-xr-x | bin/ssh_sk_add | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ssh_sk_add b/bin/ssh_sk_add new file mode 100755 index 0000000..24079e4 --- /dev/null +++ b/bin/ssh_sk_add @@ -0,0 +1,8 @@ +#!/bin/sh +# load resident keys from a FIDO authenticator to the SSH agent +output=$(ssh-add -K 2>&1) +if [ $? -eq 0 ]; then + notify-send -u low "FIDO keys loaded" "${output}" +else + notify-send -u critical "Error adding FIDO2 keys to SSH agent" "${err_output}" +fi |