This is probably a stupidly simple question to some :)
(对某些人来说,这可能是一个愚蠢的简单问题:))
I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in.
(我在Amazon EC2上创建了一个新的linux实例,并且作为其中一部分下载了.pem文件,以允许我进行SSH输入。)
When I tried to ssh with:
(当我尝试使用ssh时:)
ssh -i myfile.pem <public dns>
I got:
(我有:)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'amazonec2.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: amazonec2.pem
Permission denied (publickey).
Following this post I tried to chmod +600 the pem file, but now when I ssh I just get:
(在这篇文章之后,我尝试将+600 pem文件修改为chmod,但是现在当我ssh时,我得到的是:)
Permission denied (publickey).
What school-boy error am I making here?
(我在这里犯了什么男生错误?)
The .pem file is in my home folder (in osx). (.pem文件在我的主文件夹中(在osx中??)。)
It's permissions look like this: (它的权限如下所示:)
-rw-------@ 1 mattroberts staff 1696 19 Nov 11:20 amazonec2.pem
ask by Matt Roberts translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…