Trevor
Trevor

Reputation: 1619

Prompted for password by ssh when trying to connect to Amazon EC2 instance

I've followed a couple of tutorials for creating an Amazon EC2 instance using the command line tools

http://www.zabada.com/tutorials/deploying-a-rails-application-to-production-on-amazon-ec2.php http://www.smartfrog.org/wiki/display/sf/Starting+an+EC2+Image+by+Hand

and all is well, i

then, when the new instance is running try to ssh on

ssh -i ~/.ssh/ec2-keypair [email protected]

At this point i'm ALWAYS prompted for a password. Obviously there's no password so it always refuses me access.

My question is, what am i doing wrong here? Why am i being prompted for a password and how can i put this right so i can ssh onto the machine i've just started?

I'm guessing this is something to do with my local setup, but as far as i know this machine hasn't had anything custom done with .ssh (there's certainly no config file or anything like that lying around that might be screwing with things).

Anyone have any ideas or suggestions?

Upvotes: 5

Views: 3644

Answers (1)

chx
chx

Reputation: 11760

ec2-user@ ? Why not root@ ?

Upvotes: 3

Related Questions