Photo by Scott Webb on UnsplashGranting ssh access on selinux enforcing systems to a user with a custom home directory other than /homeYasin İsa YILDIRIM·Jan 23, 2023·1 min readPlay this articleYour browser does not support the audio element.SPEED1XWork in progress sudo semanage fcontext --add -t ssh_home_t "/path/to/my/.ssh(/.*)?"; sudo restorecon -FRv /path/to/my/.ssh sshssh-keysSELinuxcentosRHEL Share this