check what is running on port ubuntu code example Example 1: ubuntu check process on port sudo lsof -i:22 Example 2: see what is using a port ubuntu $ sudo lsof -i:22