[英]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 我已经按照几个教程使用命令行工具创建了Amazon EC2实例
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 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 +图像通过+手+
and all is well, i 一切都很好,我
then, when the new instance is running try to ssh on 然后,当新实例运行时尝试ssh on
ssh -i ~/.ssh/ec2-keypair ec2-user@foo.bar.amazon.com ssh -i~ / .ssh / ec2-keypair ec2-user@foo.bar.amazon.com
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). 我猜这是与我的本地设置有关,但据我所知这台机器没有任何自定义完成.ssh(当然没有配置文件或任何类似的东西,可能会搞砸东西)。
Anyone have any ideas or suggestions? 任何人有任何想法或建议吗?
ec2-user@
? ec2-user@
? Why not root@
? 为什么不
root@
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.