Question
CoreOS manually set SSH keys keep resetting.
We have a CoreOS dropplet and have manually setup ssh keys for it via the ~/.ssh/authorized_keys file. Once in a while (it happens about 2 times per month), the keys in that file would revert to the globally set ones via the DigitalOcean website inside the security setting page. Does anyone have any idea why this keeps happening?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
We did some more testing and it seems that every time we reboot the machine, it overwrites ~/.ssh/authorized_keys with the ssh keys that were active when the machine was initially created.
Marking the ~/.ssh/authorized_keys file as immutable seems to solve the issue.