Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read
Granting ssh access on selinux enforcing systems to a user with a custom home directory other than /home
Y

cat about.md > /dev/null

Work in progress

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