เปลี่ยน SSH Port AlmaLinux 8

echo "Port 2200" >> /etc/ssh/sshd_config
dnf install policycoreutils-python-utils -y
semanage port -a -t ssh_port_t -p tcp 2200

กรณีเปิด firewall ต้องเปิดพอร์ตด้วย

firewall-cmd --permanent --add-port=2200/tcp
firewall-cmd --reload

restart ssh service

sudo systemctl restart sshd