Granting ssh access on selinux enforcing systems to a user with a custom home directory other than /home

Photo by Scott Webb on Unsplash

Granting ssh access on selinux enforcing systems to a user with a custom home directory other than /home

Play this article

Work in progress

sudo semanage fcontext --add -t ssh_home_t "/path/to/my/.ssh(/.*)?";
sudo restorecon -FRv /path/to/my/.ssh