Skip to content

List project wide SSH keys in Google Cloud

Why

Sometimes project wide SSH keys are enabled on the project and you'd like to list them

How

gcloud compute project-info describe \
 --format="value(commonInstanceMetadata[items][ssh-keys])"

Ideally you should not enable project wide SSH keys, disable it in the org policy

Further reading


Want to make this site better? Open a PR or help fund hosting costs