yesterday (Sat 8/8) there was one of the usual gigantic slowroll updates. it included new versions of selinux. after the update and reboot, when I tried to ssh into the system it asked me for a password even though I have ssh keys set up. I ran restorecon -R -v ~/.ssh and that fixed it. however, I then thought I’d fix any other lingering security problems so I touched the /.autorelabel file and rebooted. after that ssh started asking for a password again. seems like some selinux database is messed up? but doesn’t restorecon use the same db? this happened on all my slowroll systems that use selinux.
after the restorecon command (good):
drwx------. 2 ek ek unconfined_u:object_r:ssh_home_t:s0 6 Jul 25 10:59 agent
-rw-------. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 177 Dec 1 2024 authorized_keys
-rw-r--r--. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 1015 Dec 24 2025 config
-rw-------. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 2610 Aug 24 2022 gh_rsa
-rw-r--r--. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 576 Aug 24 2022 gh_rsa.pub
-rw-------. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 399 Jul 19 2025 id_ed25519
-rw-r--r--. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 88 Jul 19 2025 id_ed25519.pub
-rw-------. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 2590 Oct 10 2025 id_rsa
-rw-r--r--. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 560 Oct 10 2025 id_rsa.pub
-rw-------. 1 ek ek unconfined_u:object_r:ssh_home_t:s0 5175 Jun 3 21:47 known_hosts
after creating /.autorelabel and rebooting (bad):
drwx------. 2 ek ek unconfined_u:object_r:default_t:s0 6 Jul 25 10:59 agent
-rw-------. 1 ek ek unconfined_u:object_r:default_t:s0 177 Dec 1 2024 authorized_keys
-rw-r--r--. 1 ek ek unconfined_u:object_r:default_t:s0 1015 Dec 24 2025 config
-rw-------. 1 ek ek unconfined_u:object_r:default_t:s0 2610 Aug 24 2022 gh_rsa
-rw-r--r--. 1 ek ek unconfined_u:object_r:default_t:s0 576 Aug 24 2022 gh_rsa.pub
-rw-------. 1 ek ek unconfined_u:object_r:default_t:s0 399 Jul 19 2025 id_ed25519
-rw-r--r--. 1 ek ek unconfined_u:object_r:default_t:s0 88 Jul 19 2025 id_ed25519.pub
-rw-------. 1 ek ek unconfined_u:object_r:default_t:s0 2590 Oct 10 2025 id_rsa
-rw-r--r--. 1 ek ek unconfined_u:object_r:default_t:s0 560 Oct 10 2025 id_rsa.pub
-rw-------. 1 ek ek unconfined_u:object_r:default_t:s0 5175 Jun 3 21:47 known_hosts
so the good version has ‘ssh_home_t’ while the bad one has ‘default_t’