I am getting following error while creating a new AMI by running some scripts on the existing old AMI. The possible problem I can guess is, I was running packer build with password authentication method, and one of the scripts in provisioner changes the authentication method to key-based, disables the password authentication, and the script also expects vm reboot before executing further scripts.
I was wondering if the packer supports my scenario, before the system reboot password authentication, after reboot key based authentication. *==> amazon-ebs: + /sbin/reboot==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...==> amazon-ebs: Terminating the source AWS instance...==> amazon-ebs: Cleaning up any extra volumes...==> amazon-ebs: No volumes to clean up, skipping==> amazon-ebs: Deleting temporary security group...Build 'amazon-ebs' errored after 1 hour 2 minutes: Error removing temporary script at /tmp/script_1660.sh: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain* -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/74117e4d-7e95-45db-a0fd-dc9f07631e9bn%40googlegroups.com.
