Zend certified PHP/Magento developer

How Can I Use SSH on Mac to Open Port 51413 While Using a CGNAT ISP?

I’m using macOS 10.14.6 and I have a CGNAT ISP. I’m trying to open port 51413. I’ve read that there’s a way to open ports using ssh but I don’t know how. Can someone please explain, step-by-step, how to do it? Thank you very much.