SSH authorized_keys permission denied on Fedora until SELinux labels were reloaded

Ran into this on February 14th, 2022 where I couldn’t authenticate to localhost with public keys on Fedora. Setting up:

# /etc/systemd/system/sshd.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/sbin/sshd -D $OPTIONS -d

..and restarting sshd finally revealed (note the permission denied error on the authorized_keys file):

Feb 14 21:45:56 l-057 sshd[110534]: debug1: userauth-request for user work service ssh-connection method publickey [preauth]
Feb 14 21:45:56 l-057 sshd[110534]: debug1: attempt 1 failures 0 [preauth]
Feb 14 21:45:56 l-057 sshd[110534]: debug1: userauth_pubkey: test pkalg ssh-ed25519 pkblob ED25519 SHA256:rtm95YXK8dY/VBT/CAbC3OYezt+bKE/3QUnK9JK9VIQ [preauth]
Feb 14 21:45:56 l-057 sshd[110534]: debug1: temporarily_use_uid: 1001/1001 (e=0/0)
Feb 14 21:45:56 l-057 sshd[110534]: debug1: trying public key file /home/work/.ssh/authorized_keys
Feb 14 21:45:56 l-057 sshd[110534]: debug1: Could not open authorized keys '/home/work/.ssh/authorized_keys': Permission denied
Feb 14 21:45:56 l-057 sshd[110534]: debug1: restore_uid: 0/0
Feb 14 21:45:56 l-057 sshd[110534]: Failed publickey for work from ::1 port 53252 ssh2: ED25519 SHA256:rtm95YXK8dY/VBT/CAbC3OYezt+bKE/3QUnK9JK9VIQ

Which following a suggestion from SSHD Gives error could not open Authorized Keys, although permissions seem correct on SlackOverflow was fixed by:

restorecon -FRvv ~/.ssh