2. The following figure shows the closed state of tcp22 port.
3. Method 2: You can use the command nc(netcat) to check the open state of the port. The method is: run NC-z192.192.5438+093.5438+0122 and open it;
4. The following figure shows the closed state of tcp22 port:
6. You can also use this method to view multiple ports at once, for example: