How to Centos 8 Change SSH Port

47

Get real time updates directly on you device, subscribe now.

How to centos 8 change ssh port

sudo yum -y install firewalld
Start firewall  ----)   systemctl start firewalld

========

sudo yum -y install policycoreutils-python-utils

========

sudo yum -y install net-tools

========

sudo yum -y install nano

========

Edit Port ----)   nano /etc/ssh/sshd_config
CTRL+X & y & Enter =  Save

========

Check Port ----)    semanage port -l | grep ssh

========

Open Port ----)   sudo semanage port -a -t ssh_port_t -p tcp 3223

========

Open Port_Firewall ----)   sudo firewall-cmd --add-port=3223/tcp --permanent

========

Reload Firewall  ----)    sudo firewall-cmd --reload

========

Restart SSH  ----)     sudo systemctl restart sshd

Hope you find it useful.

Are you looking for a fully secure and affordable host?

Visit us: https://www.regxa.com

Get real time updates directly on you device, subscribe now.

You might also like
Leave A Reply

Your email address will not be published.