RHEL6 Alternative SSH Port

Redhat Enterprise Linux 6 was released several months ago and after the usual back and forth we have begun installing production systems.

Unlike previous versions of RHEL RHEL6’s selinux is configure to restrict SSH from binding to ports other than 22. To allow SSH to bind to an alternative port we must first install semanage and then configure selinux to run on an alternative port.

Here are the commands:

yum install policycoreutils-python
/usr/sbin/semanage port -a -t ssh_port_t -p tcp {PORT}


Leave a Reply