Sunday, November 3, 2013

selinux authorized_keys context

IMHO, Googling "selinux authorized_keys context" produces too many results with restorecon. To me it makes more sense to just change the context directly.
chcon -t ssh_home_t .ssh/
chcon -t ssh_home_t .ssh/authorized_keys
If you want this context change to persist future runs of restorecon, then use
semanage.

No comments: