I understand the gcp provide a functionality where adding a ssh public key in instance meta will allow user to ssh into the machine with publickey authentication.
But, I am interested to know how gcp does that?
Does GCP intercept by ssh request before it reaches the machine and add the relevant authorized_keys into my machine? Or Does SSH provide some functionality which is used by GCP to achieve such capability?