rancher / quickstart

381 stars 338 forks source link

enable-oslogin must be set to false for ssh-key to work #203

Closed sapient007 closed 2 years ago

sapient007 commented 2 years ago

TLDR: most GCP projects have enable-oslogin set to TRUE by default. However to inject a ssh-key through metadata and then login successfully, the enable-oslogin must be set to FALSE.

Longer: When user runs this repo with default setting, likely enable-oslogin is set to TRUE on the GCP project resulting in user receiving SSH error of Permission Denied. to avoid this another metadata field must be set to over write project level settings.

bashofmann commented 2 years ago

@sapient007 Thank you for the contribution. Could you run terraform fmt to fix the tests and squash your commits, if possible?