I have a Linux VM instance running in Google Cloud Platform.
I tried to copy my public key to ~/.ssh/authorized_keys and I can successfully SSH to my VM.
But sometimes ~/.ssh/authorized_keys is flushed and I have to copy the public key again.
It is really a pain to add public key every time.
How do I add a public key permanently?