-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handshake error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none], no supported methods remain #1517
Comments
Note: This issue DOES NOT happen with an Ubuntu AMI that uses a "ubuntu" user for the login. Thus, the scope of the bug is likely limited to AMIs that link the keypair with the "root" user as opposed to a provisioning user (i.e. "ubuntu" or "ec2-user"). |
I ran into the same problem, and what fixed it for me was changing the |
As @kyptin said, please set the proper user/pass. This error is a bit bad but that is the core of the issue is that the authentication is failing. The good news is that Packer was able to talk to the server, so that means you're almost there! |
Hi All, I'm also facing this issue, please suggest. root@gfs1:/etc/heketi# heketi-cli topology load --json=/etc/heketi/topology.json
Thanks |
Hi @Vishal-Gaur, thanks for reaching out. This ticket is really old so it's probably not relevant to the issue you're seeing. To ask for general help use IRC See https://www.packer.io/community/ Thanks! |
How do you use Packer to build base AMI's that you can build other specific packer generated AMIs on top of? SSH KeyPair issues are tripping me up and I'm not sure if this is a bug, or that I'm misusing the tool.
I'm trying to build a "base centos" AMI with packer first, then use the generated AMI as the source_ami for other packer .json machine templates. Though my base centos image appears to work correctly, when I reference the generated AMI in subsequent templates, I can't get past the SSH login part. I doesn't appear that the public key from the AWS keypair gets copied to the machine correctly. Oddly, if I use the private key generated from the initial "base centos" machine to login to the new machine it works.
I've tried following this advice: http://stackoverflow.com/questions/22204001/how-does-ec2-install-the-public-key-from-your-keypair and on the new machine (that uses the "base centos" as source_ami) I define a user_data_file like:
(which should copy the public key from the newly generated key-pair where it needs to be to authenticate via ssh)
Any tips or insight into how to proceed would be greatly appreciated.
Thanks!
-joe
The text was updated successfully, but these errors were encountered: