/etc/ssh/sshd_config
- Find:
#Port 22
- Replace:
Port 7777
- Stop firewall and reboot:
- Mã: Chọn tất cả
cd
echo 0 > /selinux/enforce
setenforce 0
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl mask --now firewalld
reboot
cd
View more: https://monovm.com/blog/how-to-change-ssh-port-on-centos/