Learn more. How do I delete secret subkeys correctly? Ask Question. Asked 2 years, 6 months ago. Active 2 years, 6 months ago. Viewed 5k times. The manual states: --delete-secret-keys name Remove key from the secret keyring. Primary key has been deleted. What is the correct way to do this? Did I understand it wrong? Improve this question. Matheus Moreira. Matheus Moreira Matheus Moreira 3 3 silver badges 15 15 bronze badges. Add a comment. Active Oldest Votes. Obtain the keygrip of the subkey you want to delete.
There should be a graphical confirmation prompt. I think it's trying to open the passphrase window but it can't. How can I enter the passphrase manually or force it to ask me the passphrase in the command line? None of the suggested methods work for me. For example none of the solutions here work: Enter SSH passphrase once.
I found an answer on StackOverflow that did the magic. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How to disable gpg GUI asking for passphrase? Ask Question. Asked 2 years, 4 months ago. Nitin Venkatesh Nitin Venkatesh Raymond No problemo : — Nitin Venkatesh. Ah I see the unique Id is on the line labelled pub, not the line labelled uid.
Looks like this needs to be updated for Show 2 more comments. Wesam Wesam 2, 1 1 gold badge 6 6 silver badges 2 2 bronze badges. Very helpful, thank you. This is extremely unhelpful UX.
Very helpful, very true also for And for Update for Ubuntu I think it would even work if you take any part of that key because it searches the pattern inside that whole key without spaces — lewis4u. I made a short script to make things easier and using a string instead of the id. Use a more specific string. Doing nothing. I ran this without a parameter and it just wiped out all my keys. If anyone else has their keys wipped, I was able to fix it by following these instructions: askubuntu.
How did this happen? It should exit with an "No key name provided" if there was no parameter.. It returns the amount of given parameters. I know I might be late, but just wanted to share this one-line command to achieve this. NOTE : This will only work if the output is an unique key.
Ubuntu versions up to
0コメント