〜/ .ec2 / id_rsa-gsg-keypair无法访问:没有这样的文件或目录

时间:2012-01-20 06:09:48

标签: ssh amazon-ec2

我正在尝试使用“Hadoop in Action”(也在这里:http://wiki.apache.org/hadoop/AmazonEC2)中的说明在Amazon ec2上启动Hadoop集群。

我已经设置了我的私有ssh密钥和配置,但是当我尝试使用命令行工具启动集群时:

hadoop-ec2 launch-cluster test-cluster 2

我反复收到此错误:

Warning: Identity file ~/.ec2/id_rsa-gsg-keypair not accessible: No such file or directory.
Permission denied (publickey,gssapi-with-mic).

~/.ec2/id_rsa-gsg-keypair肯定存在,我做了chmod 600

> chmod 600 ~/.ec2/id_rsa-gsg-keypair

> ls -l id_rsa-gsg-keypair
-rw-------  1 my-username

知道什么是错的吗?

1 个答案:

答案 0 :(得分:0)

您可能已经意识到这一点,但问题可能与〜/路径使用有关。尝试使用绝对路径/home/username/.ec2

相关问题