Moo*_*ani 0 linux ssh amazon-ec2 amazon-web-services
我无法通过 ssh 进入我的 EC2 实例,这似乎是我传递给 ssh 的 ssh .pem 文件的权限级别的问题,谷歌搜索这似乎是许多其他人面临的问题,但他们的解决方案没有不适合我。
这是我尝试过的,请有人帮忙...
尝试 1:
asemani$ ssh -i ~/.ssh/secure.pem root@54.210.0.1
********************************************************************************
This is a private computer system containing information that is proprietary
and confidential to the owner of the system. Only individuals or entities
authorized by the owner of the system are allowed to access or use the system.
Any unauthorized access or use of the system or information is strictly
prohibited.
All violators will be prosecuted to the fullest extent permitted by law.
********************************************************************************
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '.ssh/secure.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key ".ssh/secure.pem": bad permissions
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
尝试 2:
asemani$ chmod 600 ~/.ssh/secure.pem
asemani$ ls -l ~/.ssh/
total 56
-rw-r--r-- 1 asemani CORP\Domain Users 782 Apr 29 11:14 config
-rw-------@ 1 asemani CORP\Domain Users 1696 Apr 29 21:32 secure.pem
asemani$
asemani$ ssh -i .ssh/secure.pem root@54.210.0.1
********************************************************************************
This is a private computer system containing information that is proprietary
and confidential to the owner of the system. Only individuals or entities
authorized by the owner of the system are allowed to access or use the system.
Any unauthorized access or use of the system or information is strictly
prohibited.
All violators will be prosecuted to the fullest extent permitted by law.
********************************************************************************
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
我不再收到警告,但权限仍然被拒绝。然后我也尝试chmod 400
在 .pem 文件上做一个,但这也不起作用。我不会在这里粘贴,因为这可能有点矫枉过正。
这里发生了什么?我怎样才能通过 ssh 进入我的 ec2?这应该是一件很简单的事情吧??
归档时间: |
|
查看次数: |
2631 次 |
最近记录: |