Universal autofil for sudo over ssh - alternative solutions?
I've seen other reports about the missing ability to use universal autofill for remote (ssh) sudo prompts. I'm currently working around this by using quick access (cmd-shift-space) with copy password (cmd-shift-c) and pasting (cmd-v).
However, this regularly creates embarassing / insecure situations where the paste buffer (even if limited to 90s) sometimes accidentally gets pasted into a terminal visibily for my coworkers - worse if it happens in shared screen sessions where other parties might be recording. It even at least once ended up in a history file that I then had to scrub. I hate rotating my sudo password that often.
I'm wondering whether it would be possible to either allow a much reduced time window (10s? 5s?) to clear the buffer or whether it would be possible to monitor buffer usage and clear after first use.
Another alternative would be to implement a different copy/paste buffer. Historically there have been different MacOS utilities that implemented different copy/paste behaviours and this maybe registering a global hotkey (say cmd-shift-v as complement to cmd-shift-c) that would carry the password and paste it and then clean it after first use. It would also avoid clobbering the regular copy buffer.
This is likely a bit complicated to get right (and might need to be an option to use separate buffers) as non-power-users may get confused quickly.
1Password Version: 1Password for Mac 8.10.38 81038059, on BETA chann
Extension Version: Not Provided
OS Version: MacOS Sonoma 14.6
Browser: Not Provided