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:
semanage port -a -t ssh_port_t -p tcp 9999
Replace 9999 with your port. More info https://www.redhat.com/sysadmin/semanage-keep-selinux-enforcing