警告:未受保护的专用密钥文件!试图通过SSH进入Amazon EC2实例时, [英] WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance

查看:293
本文介绍了警告:未受保护的专用密钥文件!试图通过SSH进入Amazon EC2实例时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立熊猫在Amazon EC2实例。 我建立了我的帐户和工具,昨晚和使用SSH与我个人的实例进行交互没有问题,但现在我不会被允许的权限进入熊猫的EC2实例。 入门熊猫

我收到以下错误:

  @警告:未受保护的专用密钥文件! @

0644的权限为〜/ .ec2 / id_rsa-GSG-密钥对过于开放。
建议你的私钥文件不被其他人访问。
该私钥将被忽略。
 

我chmoded我的密钥对600以进入我的个人情况,昨晚,并且尝试在长度设置权限为0,甚至产生新的密钥字符串,但似乎没有奏效。

任何帮助都将是一个很大的帮助!


嗯,它好像除非权限的目录设置为777,在EC2-运行实例脚本无法找到我的密钥文件。 我是新来的SSH,所以我可能会被忽视的东西。

解决方案
  

我chmoded我的密钥对600以进入我的个人情况,昨晚,

这是它的方式应该是。

EC2文档我们的 如果你使用OpenSSH(或任何合理偏执SSH客户端),那么你可能需要设置该文件的权限,因此,它的唯一可读你。的熊猫文档链接到链接到亚马逊文档,但真的没有传达这一切是多么的重要。

的想法是,密钥对文件是密码和需要被保护。因此,您使用的是SSH客户端需要这些文件被固定,只有您的帐户可以读取它们。

设置目录700真的应该足够,但777是不会只要文件是600伤害。

您有什么问题,是客户端,所以一定要包括与任何跟进问题,本地操作系统的信息!

I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance. Getting Started with Panda

I'm getting the following error:

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

Permissions 0644 for '~/.ec2/id_rsa-gsg-keypair' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.

I've chmoded my keypair to 600 in order to get into my personal instance last night, and experimented at length setting the permissions to 0 and even generating new key strings, but nothing seems to be working.

Any help at all would be a great help!


Hm, it seems as though unless permissions are set to 777 on the directory, the ec2-run-instances script is unable to find my keyfiles. I'm new to SSH so I might be overlooking something.

解决方案

I've chmoded my keypair to 600 in order to get into my personal instance last night,

And this is the way it is supposed to be.

From the EC2 documentation we have "If you're using OpenSSH (or any reasonably paranoid SSH client) then you'll probably need to set the permissions of this file so that it's only readable by you." The Panda documentation you link to links to Amazon's documentation but really doesn't convey how important it all is.

The idea is that the key pair files are like passwords and need to be protected. So, the ssh client you are using requires that those files be secured and that only your account can read them.

Setting the directory to 700 really should be enough, but 777 is not going to hurt as long as the files are 600.

Any problems you are having are client side, so be sure to include local OS information with any follow up questions!

这篇关于警告:未受保护的专用密钥文件!试图通过SSH进入Amazon EC2实例时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆