You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
our usecase involves building multiple types of images within our tech ecosystem , This has become a new requirement as since we used to build individual images and it incurred lot of time as since the number of images we build took lot of time , We consolidated the types into single packer file instead individual packer files
when building multiple images using the same builder type googlecompute we see only one suceed and others fail with the.
Sample packer file
Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
When checked on the image ch i see public key uploaded in the ssh metadata is different compared to the one uploaded in the ncv hence one of them works as expected since the public/private key pair matches while the other fails due to public public/private key pair is wrong
Reproduction Steps
Try multiple builders of same type in single packer.json file , using the code i provided
Steps to reproduce this issue
Plugin and Packer version
1.11.2
Log Fragments and crash.log files
Logs
Fingerprint of Public Key uploaded for **CH**2048 SHA256:0+u21irk2GNDe9NxibNwMFm4YUJa9ooN0dOdL/YYl9Y sa_102136215908502294195 (RSA)
Fingerprint of Public Key uploaded for **NCV**2048 SHA256:c62VEBhoKdvSaXHEVbtQ7KrJCi+6uWeePm28ofrHTfc sa_102136215908502294195 (RSA)
Error
Build 'googlecompute.google-ncv' errored after 35 minutes 48 seconds: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Oct 13 09:01:13 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2401]: Failed publickey for sa_102136215908502294195 from 10.60.109.199 port 57828 ssh2: RSA SHA256:c62VEBhoKdvSaXHEVbtQ7KrJCi+6uWeePm28ofrHTfc
Oct 13 09:01:14 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2401]: Connection closed by authenticating user sa_102136215908502294195 10.60.109.199 port 57828 [preauth]
Oct 13 09:01:14 packer-670bee7b-f981-759f-1235-2e39c630827b chronyd[2357]: Selected source 169.254.169.254 (metadata.google.internal)
Oct 13 09:01:21 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2409]: Connection from 10.60.109.199 port 57854 on 10.163.100.85 port 22 rdomain ""
Oct 13 09:01:21 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2409]: error: kex_exchange_identification: Connection closed by remote host
Oct 13 09:01:21 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2409]: Connection closed by 10.60.109.199 port 57854
Oct 13 09:01:22 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2410]: Connection from 10.60.109.199 port 57855 on 10.163.100.85 port 22 rdomain ""
Oct 13 09:01:27 packer-670bee7b-f981-759f-1235-2e39c630827b sshd[2410]: Failed publickey for sa_102136215908502294195 from 10.60.109.199 port 57855 ssh2: RSA SHA256:c62VEBhoKdvSaXHEVbtQ7KrJCi+6uWeePm28ofrHTfc
The text was updated successfully, but these errors were encountered:
Overview of the Issue
our usecase involves building multiple types of images within our tech ecosystem , This has become a new requirement as since we used to build individual images and it incurred lot of time as since the number of images we build took lot of time , We consolidated the types into single packer file instead individual packer files
when building multiple images using the same builder type
googlecompute
we see only one suceed and others fail with the.Sample packer file
error
Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
When checked on the image
ch
i see public key uploaded in the ssh metadata is different compared to the one uploaded in thencv
hence one of them works as expected since the public/private key pair matches while the other fails due to public public/private key pair is wrongReproduction Steps
Try multiple builders of same type in single packer.json file , using the code i provided
Steps to reproduce this issue
Plugin and Packer version
1.11.2
Log Fragments and crash.log files
Logs
Fingerprint of Public Key uploaded for
**CH**
2048 SHA256:0+u21irk2GNDe9NxibNwMFm4YUJa9ooN0dOdL/YYl9Y sa_102136215908502294195 (RSA)
Fingerprint of Public Key uploaded for
**NCV**
2048 SHA256:c62VEBhoKdvSaXHEVbtQ7KrJCi+6uWeePm28ofrHTfc sa_102136215908502294195 (RSA)
Error
The text was updated successfully, but these errors were encountered: