Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH Login Fails Due to SELinux #30

Open
GMATHUR90 opened this issue Dec 29, 2024 · 1 comment
Open

SSH Login Fails Due to SELinux #30

GMATHUR90 opened this issue Dec 29, 2024 · 1 comment

Comments

@GMATHUR90
Copy link
Owner

Users cannot log in via SSH, and SELinux denies access.

@GMATHUR90
Copy link
Owner Author

Solution:

a. Check the SELinux context of the user’s home directory:

ls -ldZ /home/username

b. Correct contexts using restorecon:

restorecon -Rv /home/username

c. Verify that SELinux booleans related to SSH access are correctly set:

getsebool -a | grep ssh
setsebool -P allow_ssh_home_dir on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant