How can I tell if port 22 is open?

Trần Vũ

New member
How can I tell if port 22 is open?
Answer
How to check if port 22 is open in Linux
  1. Run the ss command and it will display output if port 22 opened: sudo ss -tulpn | grep :22.
  2. Another option is to use the netstat: sudo netstat -tulpn | grep :22.
  3. We can also use the lsof command to see if ssh port 22 status: sudo lsof -i:22.
 

Tìm kiếm

Back
Top