Bash script for sending passphrase to unlock OpenPGP secret key
0
votes
2
answers
1739
views
Ubuntu 22.04.1 LTS
When I do a
git push REMOTE
after a reboot, after a few seconds it comes up with a dialog box:
+---------------------------------------------------------------+
| Please enter the passphrase to unlock the OpenPGP secret key: |
| "user" |
| 3072-bit RSA key, ID FF3B0094D97228, |
| created 2023-09-22 (main key ID 9BD967C9E4EC49). |
| |
| |
| Passphrase: _________________________________________________ |
| |
| |
+---------------------------------------------------------------+
How can I automate entering this passphrase via a script so I do not have to do it manually?
I tried this which does not work:
git push REMOTE
sleep 10 # Waits 10 seconds.
KEY
Thanks!
Asked by Strider
(1 rep)
Nov 28, 2023, 10:53 AM
Last activity: Dec 30, 2023, 05:00 PM
Last activity: Dec 30, 2023, 05:00 PM