Menu Close

ssh通过密钥认证时报错

Permission denied#### 1. 故障现象(SYMPTOMS)

~]$ ssh XXX.XXX.13.24
lzuser@XXX.XXX.13.24: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

2. 变化(CHANGES)

3. 故障原因(CAUSE)

目标服务器ssh用户的根目录下文件 ~/.ssh/authorized_keys 的权限非 600

4. 解决方案(SOLUTION)

chmod 600 ~/.ssh/authorized_keys

5. 总结(SUMMARY)