[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What services are using these ports?



Marc Shapiro said:

> Any help determining what is active at these ports and how to disable any
> un-needed services would be appreciated.
>


easiest way is to run nmap against the machine(or netstat), determine
the ports and protocols that are open and run

fuser -n <proto> <port>

e.g. if you had ssh running and wanted to see what PID was using that
port you would do:

fuser -n tcp 22

since ssh uses tcp and port 22, the system would spit back a PID for
whats using that port.

another way to determine this is using the command lsof. e.g.

lsof | grep LISTEN
lsof | grep UDP

is what I do ..

nate





Reply to: