我将 SSH 私钥文件保存在单独的 USB 拇指驱动器(加密)上,但是当我尝试使用它连接到我的远程主机时,出现错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/Volumes/USB/id_rsa' 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: /Volumes/USB/id_rsa
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
我已经尝试更改密钥文件 (chmod 600 id_rsa) 的权限,但它看起来仍然设置为 777(更改未生效)。这是在 Mac OS X 上。
知道如何修复它吗?
ssh ×1