Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am bootstrapping a ec2 ubuntu based chef node using chef, it creates an instance but it says Failed to authenticate ubuntu - trying password authand asks for the password. But a newly created ubuntu ec2 instance will not have any kind of password set. Throws an error

ERROR: Net::SSH::AuthenticationFailed:

How do I bypass this event and also whats the problem, do I have to make any changes in the configurations.

Kindly help me I am new to the chef.

share|improve this question
are you even pointing to your ssh key you used to setup the ec2 instance? – Mike Mar 5 '13 at 7:08
up vote 4 down vote accepted

My guess is you aren't using this

The SSH identity file used for authentication. Key-based authentication is recommended.
share|improve this answer

You can also use "ssh-agent" and use "ssh-add" on you private key to let ssh know you want to use it, without specifying the "-i" option with invocation of ssh.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.