I am trying to create the image on GCP and finding the SSH timeout error while building the image with Packer.
googlecompute: output will be in this color.
==> googlecompute: Checking image does not exist…
==> googlecompute: Creating temporary rsa SSH key for instance…
==> googlecompute: Using image: rhel-7-jenkins-master-1-0-0-67-g3b1d409
==> googlecompute: Creating instance…
googlecompute: Loading zone: us-central1-c
googlecompute: Loading machine type: n1-standard-1
googlecompute: Requesting instance creation…
googlecompute: Waiting for creation operation to complete…
googlecompute: Instance has been created!
==> googlecompute: Waiting for the instance to become running…
googlecompute: IP: 10.128.12.132
==> googlecompute: Using ssh communicator to connect: 10.128.12.132
==> googlecompute: Waiting for SSH to become available…
==> googlecompute: Timeout waiting for SSH.
==> googlecompute: Deleting instance…
googlecompute: Instance has been deleted!
==> googlecompute: Deleting disk…
googlecompute: Disk has been deleted!
Build ‘googlecompute’ errored after 6 minutes 9 seconds: Timeout waiting for SSH.
==> Wait completed after 6 minutes 9 seconds
==> Some builds didn’t complete successfully and had errors:
–> googlecompute: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.