jelaiw / hapi-lab

Virtual lab for Corey Ball's "Hacking APIs" book.
0 stars 1 forks source link

Set up basic (via instance metadata) ssh to Kali VM #21

Closed jelaiw closed 1 year ago

jelaiw commented 1 year ago

Notes

jelaiw commented 1 year ago

For some reason setting the instance metadata for ssh-keys on a running VM from Terraform did not install the ssh public key to authorized keys for kali user.

At first, it seemed as if we needed user "kali" in two places in the ssh-keys metadata format, but a re-build of the resource (taint or destroy/apply) installed the ssh key successfully.

jelaiw commented 1 year ago

Seems to suggest that ssh-keys needs to exist in the instance metadata at initial VM create time?

If yes, this does not appear to be clearly documented.

Could probably use more testing, but basic ssh access is all we need right now, so closing.