Change SSH Port - CentOS 7

  • 3 December 2015 6:24 AM

In order change SSH port to non-default in CentOS 7.x, please follow below steps:

1) yum -y install policycoreutils-python
2) semanage port -a -t ssh_port_t -p tcp 2244

3) firewall-cmd --permanent --zone=public --add-port=2244/tcp
4) firewall-cmd --reload

Did you find this article useful?   0 out of 0 people found this article useful.

Related Articles


Forgot password?
Register now