Fix lỗi semanage không run trên Centos 7 - 21102019

Post Top Ad

Responsive Ads Here

Post Top Ad

Saturday, May 11, 2019

Fix lỗi semanage không run trên Centos 7

Responsive Ads Here
By default, SELinux only allows port 22 for SSH. What you need to do is enable the newly created port through SELinux. To do that, run the commands below
sudo semanage port -a -t ssh_port_t -p tcp 2244
If you run the commands above and get an error that semanage command not found, run the commands below to install it.
sudo yum -y install policycoreutils-python
Then go and run the semange commend again to allow the new port through SELinux.

No comments:

Post a Comment

Post Top Ad