semanage port -a -t ssh_port_t -p tcp 9999Replace 9999 with your port. More info https://www.redhat.com/sysadmin/semanage-keep-selinux-enforcing
Computer Tips - selinux: allow SSH server on a custom port
Date: 2022dec10
OS: Linux
Language: bash
Q. selinux: allow SSH server on a custom port
A. If you want to run SSHD on a port other than 22: