Оказывается, атрибуты SELinux неверны. Мне пришлось подключить диск к другому экземпляру, изменить enforcing = 0 в / etc / selinux / config
, а затем перемонтировать и загрузить без SELinux, после чего мне пришлось изменить метку всей файловой системы ( по крайней мере, я решил сделать это, перемаркировав группу вручную и обнаружив еще больше), выполнив touch /.autorelabel
, а затем еще раз перезагрузившись.
One gotcha with sshd will not let someone in via authorized_keys unless both authorized_keys and the .ssh directory have correct permissions:
chmod 700 /home/username/.ssh
chmod 600 /home/username/.ssh/authorized_keys
(Replace username by the user name of the SSH user)
Also, ssh login errors are logged in /var/log/secure (possibly a different file if you're using something besides a RedHat clone), so looking in the file for ssh login errors will help troubleshoot and resolve this issue.