SSH 公钥认证 Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

1
2
3
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
restorecon -r -vv .ssh/authorized_keys

如果还不行 关闭selinux/firewalld

如果还不行,检查 /etc/security/access.conf 添加:

1
-:ALL EXCEPT root <username> :ALL

重启或:

1
source /etc/security/access.conf