1
SSHPublicKey    admin   2b:xx:
SSHPublicKey    admin   2c:yy

How to remove one ssh key from the cluster ? when tried to delete via normal way,

kops delete secret --name cluster-1.dev.transein.com sshpublickey admin

found multiple matching secrets; specify the id of the key

How to remove one , or even the entire sshkey

0
2
kops delete secret --name cluster-1.dev.transein.com sshpublickey admin 2c:yy
3
  • 2
    Hi! Glad you found the answer, but this oneliner is not going to be helpful for anyone else. Can you please enrich the answer with some explanation of what it does, and why this is the correct answer? Dec 24 '19 at 9:47
  • Please reply to the comment and mark the answer as accepted once updated.
    – 030
    Dec 25 '19 at 8:38
  • hey Bruce, reason is we can have multiple keys under the same name before applying into cluster but when applying to cluster it will show an error that multiple sshkeys are there you need to remove one ! so at that time we need to pass the id along with the delete command to remove the desired key. Hope it clarified. Dec 27 '19 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.