Check that you can reach the VPS console first. A bad rule can block your current SSH session or new ones.
- Keep your current SSH session open. Allow the actual management port from your trusted IP or VPN. Check the OS firewall and any provider-level network rules.
- Test a new connection before closing the old session. Open only the ports your service needs, and check both IPv4 and IPv6 if enabled.