[chef] Re: knife ec2 create fails SSH auth


Chronological Thread 
  • From: Cassiano Leal < >
  • To:
  • Subject: [chef] Re: knife ec2 create fails SSH auth
  • Date: Fri, 18 Jan 2013 10:56:36 -0200

Never mind. Fixing the key path on knife.rb solved it.

I remember knife having a bug where the CLI arguments did not take precedence over knife.rb when they should, but I (barely) recall seeing e-mails about that being fixed, am I wrong?

I'm using knife 10.18.0

Cheers,
- cassiano

On Friday, January 18, 2013 at 09:59, Cassiano Leal wrote:

Hello,

I'm trying to create an EC2 instance via knife ec2 create. The command I'm using is:

knife ec2 server create -Z sa-east-1b -N inst_name -f c1.medium -I ami-c819c0d5 -r "role[role1],role[role2]" -g sg-XXXXXXXX -S ssh_key_name -x ubuntu -i ~/.ssh/ssh_key_name.pem

The AMI is the base Ubuntu AMI 12.04 for the region.

When I fire up that command, the instance is loaded up, but it fails to authenticate and asks for a password. If I try to SSH directly from the terminal, it works.

I checked /var/log/auth.log and found this:

Jan 18 11:39:09 ip-10-252-130-183 sshd[733]: Did not receive identification string from XXX.XXX.XXX.XXX
Jan 18 11:39:09 ip-10-252-130-183 sshd[1096]: reverse mapping checking getaddrinfo for XXX.XXX.XXX.XXX.static.gvt.net.br [XXX.XXX.XXX.XXX] failed - POSSIBLE BREAK-IN ATTEMPT!
Jan 18 11:39:09 ip-10-252-130-183 sshd[1096]: Connection closed by XXX.XXX.XXX.XXX [preauth]

What's going on, and why does it work using SSH directly but not via knife-ec2?

Thanks,
- cassiano





Archive powered by MHonArc 2.6.16.

§