Unable to get ssh key to work

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to get ssh key to work

L0 Member

Trying to spin up a firewall in the GCP environment but unable to get ssh key to work.  Tried different keys including puttygen generated key.    Also tried project metadata and instance metadata


resource "google_compute_instance" "fw-region" {
count = 2
name = "fw-region-${count.index +1 }"
can_ip_forward = true

metadata = {
ssh-keys = "admin:ssh-rsa ZZZB3NzaC1yc2EAAAABJQAAAQEAhY75tZnIVX8Stub/Zd7B6qApkgbxYFjMfxBhX+qgHpVNzD8qLJ2CWuWkQu4uA8FbmTW1L1Ozr0PFoYzJDtEDROzRVmludG57kLd9/zKmm9WI+8JvamRBrCtXwB1fPmiM03gxrh8x3gOwaWS6P6I9oD825tXXC5jT+1w3TpMcyjiOHec8AKKMAAA5jVOy2MHGSepds0FQrw4l7J47ZvDq5uy+FaclblB3Mm/Xw== admin"


  • 0 replies
  • 85 Subscriptions
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!