gpt4 book ai didi

amazon-web-services - EC2 Ubuntu 实例 - 未 protected 私钥文件

转载 作者:太空宇宙 更新时间:2023-11-03 16:41:29 25 4
gpt4 key购买 nike

我刚刚在 EC2 上创建了一个 Ubuntu 实例,但是当我尝试通过 SSH 连接到机器时,我得到:

UNPROTECTED PRIVATE KEY FILE!  
permissions 0644 for 'xxxxx.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: xxxxx.pem
Permission denied (publickey).

在创建 key 时,您只需输入一个名称(没有添加密码的选项)。

如何在不弹出此警告的情况下通过 SSH 连接到计算机?

最佳答案

私钥必须只能由所有者读取..

在您要连接的机器上执行 chmod 400 xxxxx.pem

关于amazon-web-services - EC2 Ubuntu 实例 - 未 protected 私钥文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10090843/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com