To open port 2022 for example:
firewall-cmd --add-port 2022/tcp --permanent firewall-cmd --reload
firewall-cmd --list-all