diff options
| author | tslil clingman <> | 2020-02-10 16:17:01 -0800 |
|---|---|---|
| committer | tslil clingman <> | 2020-02-10 16:17:01 -0800 |
| commit | d2ab080a66b99799f51912d77509062625d95f4c (patch) | |
| tree | bcf02fa9629b1c0f25c344004bbc24441ed3a670 | |
| parent | cef874a5aaf7a8c2ba60603176500099cf3c4362 (diff) | |
Improvements to interaction with keychain
| -rwxr-xr-x | badpass | 4 | ||||
| -rwxr-xr-x | unlock_keys | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -25,10 +25,12 @@ echo USEKEYCHAIN () { expect - <<EOF spawn keychain --nogui --quiet $1 +set send_slow {1 0.001} expect { - "Enter passphrase for $HOME/.ssh/$1:"; { send "$2\n"; } + "Enter passphrase for $HOME/.ssh/$1:"; { send -s "$2\n"; } } EOF + echo } CALL=echo diff --git a/unlock_keys b/unlock_keys index a6bc45f..f664465 100755 --- a/unlock_keys +++ b/unlock_keys @@ -4,4 +4,6 @@ eval $(keychain --eval -q --systemd) KEY_FILES=$(ls $HOME/.ssh | grep -v '\(pub$\|^config$\|^known_hosts$\|^autohrized_keys$\)') badpass -k $KEY_FILES +sleep 1s +keychain -l echo Done! |
