Hi All, I’m trying to set up SSH to my Bazzite machine root account using SSH keys.
I’ve turned on using authorized_keys2
in the sshd_config file.
However, it doesn’t work, with an SELinux error:
Jan 14 20:10:57 jpc setroubleshoot[77579]: SELinux is preventing sshd-session from open access on the file /var/roothome/linux-settings/conf_files/ssh/authorized_keys2.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that sshd-session should be allowed open access on the authorized_keys2 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'sshd-session' --raw | audit2allow -M my-sshdsession
# semodule -X 300 -i my-sshdsession.pp
Key-based SSH works for non-root accounts, but not for root accounts. I’ve tried running the two selinux commands:
# ausearch -c 'sshd-session' --raw | audit2allow -M my-sshdsession
# semodule -X 300 -i my-sshdsession.pp
But it still doesn’t work, with exactly the same error in the system log.
Does anyone know why this doesn’t work, and how I can report it to the Bazzite team to fix?