udacity / devops-intro-project

Project files for Intro to DevOps class
286 stars 3.57k forks source link

Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. #90

Open c0deek opened 4 years ago

c0deek commented 4 years ago

Command executed: packer build -only=virtualbox-iso application-server.json

The VM was created. I selected openSSH while installing. But after sometime te following errors flashed and the VM was automatically deleted

==> virtualbox-iso: Waiting for SSH to become available... ==> virtualbox-iso: 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 password], no supported methods remain ==> virtualbox-iso: Deregistering and deleting VM... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: 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 password], no supported methods remain

13rac1 commented 4 years ago

You might have a bad image? Try deleting and redownloading. The password isn't stored in this project. This is probably an issue with your Packer configuration