Google Cloud: Why my linux instances has 3 users created by default?

When I create Linux VM, It's creating multiple home directories being created. I researched and found that While creating Linux VM GCP is using my project meta SSH info. But we have add `block-project-ssh-keys=TRUE parameter. But still it's using meta SSH info and creating multiple home directories while launching the VM.

 

5 1 41
1 REPLY 1

Hello @jagadish246  ,Welcome on Google Cloud Community.

"block-project-ssh-keys=TRUE" prevent VM from using SSH keys provided directly to VM. 

DamianS_0-1715691901130.png

Additionally, if you have "os-login=TRUE" at the metadata , each time someone will ssh to your VM, home-directory will be created. 

DamianS_1-1715692010846.png

 

So default Linux VM does not contain any additional user homedirs, unless you choose preconfigured one taken from Marketplace ( apache, mysql or something)

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

 

Top Labels in this Space