I followed several tutorials to create an Amazon EC2 instance using 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
- ec2-add-keypair (directing output of ec2-add-keypair directly to a file in ~ / .ssh)
- chmod 600 keypair
- ec2 introductory instance
- ec2-describe-instances
then when a new instance starts try ssh on
ssh -i ~ / .ssh / ec2-keypair ec2-user@foo.bar.amazon.com
At this moment, I ALWAYS request a password. Obviously, there is no password, so it always refuses access.
My question is: what am I doing wrong here? Why do I get a password request and how can I do this so that I can ssh on the machine I just started with?
I suppose this is due to my local setup, but as far as I know, this machine had nothing to do with .ssh (of course there is no configuration file or anything like that, screwing things up).
Anyone have any ideas or suggestions?
source share