4 ms·
I do something like this surprisingly often when dealing with iDRAC/IPMI/etc: sleep 3; xdotool type "abc123"
by aftbit 2y ago
I do something like this surprisingly often when dealing with iDRAC/IPMI/etc:
sleep 3; xdotool type "abc123"
- rkeene2 2y agoWhen I was doing that a lot I just patched my VNC client to send the keys for the data in the clipboard on "paste" so I could use its native "paste" command
- didsomeonesay 2y ago.. and now the password is stored unencrypted in your bash history.
- aftbit 2y agoThat's a feature, not a bug. :P Alright if you prefer: read PW; sleep 3; xdotool type "$PW" Or if it's already on your clipboard: sleep 3; xdotool type "$(xclip -o)"
- mmh0000 2y agoUse the `read` method the other poster said, or ensure HISTCONTROL is set and then prepend a space to commands that contain secrets. $ export HISTCONTROL=ignoreboth $ echo 'supersecret' | whatever
- bombela 2y agoPrefix any command with a space and bash won't append to the history.