lsof check what port service is running


To check what port a service is running on.

Run the below lsof command with the port your interested in

lsof -i :22
Advertisements