SSH 私钥权限限制
August 10, 2024 by
时间长了会忘记, 记录一下
通过 chmod 600
解决 SSH
私钥权限限制
报错信息:
Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
解决方案:
chmod 600 ~/.ssh/id_rsa
编写 SSH
脚本
ssh.bash
chmod 600 tencent_cloud.pem
ssh -i tencent_cloud.pem root@xx.xx.xx.xx