Firewall-cmd - как открыть порт ssh - 22
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Версия от 14:33, 4 февраля 2023; Admin iph (обсуждение | вклад)
Firewall-cmd - как открыть порт ssh - 22
Открыть 22 порт можно командами:
# firewall-cmd --zone=public --permanent --add-service=ssh # firewall-cmd --reload
Проверить все правила firewalld:
# firewall-cmd --list-all
Закрыть обратно порт можно командами:
# firewall-cmd --zone=public --remove-service=ssh --permanent # firewall-cmd --reload