Identify, evaluate, prioritize, and then control
Short answer, you don't. Modern Processors are made up of billions of transistors and are built in multi million dollar factories that have equipment just for that purpose.
Explanation:
By default, SSH opens port 22.
However, this can be arbitrarily changed. So if port 22 does not work, it is necessary to check the exact/new port number.