文档目录

SSH登录失败出现“This private key will be ignored.”报错,如何解决?

现象

SSH登录失败,目标云主机内提示“Permissions 0777 for '~/.ssh/id_rsa' are too open,It is required that your private key files are NOT accessible by others.This private key will be ignored.”。

原因

id_rsa的权限过高导致ssh登录失败。

解决方案

执行chmod 700 id_rsa重新赋权后恢复正常。
常见问题解答(FAQ) | 4.8.38 | ZStack Cloud · ZCF | ZStack 资源中心