mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Use rofi for SSH passphrases
This commit is contained in:
parent
e646389fab
commit
bb8b9420d6
3 changed files with 32 additions and 1 deletions
11
bin/ssh-askpass-rofi
Executable file
11
bin/ssh-askpass-rofi
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
arg="$*"
|
||||
|
||||
key="$(echo "${arg}" | perl -ne "/'(.*)'/"' and print "$1\n"')"
|
||||
pub="${key}.pub"
|
||||
fingerprint="$(ssh-keygen -l -v -f "${pub}")"
|
||||
|
||||
mesg="${arg} ${fingerprint} "
|
||||
|
||||
rofi -dmenu -disable-history -no-fixed-num-lines -l 1 -i -input /dev/null -password -p 'Passphrase' -mesg "${mesg}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue