[CentOS] how tell what process has port 22

Thu Mar 23 05:15:37 UTC 2006
Collins Richey <crichey at gmail.com>

On 3/22/06, Jerry Geis <geisj at pagestation.com> wrote:
> >On Wed, Mar 22, 2006 at 11:30:47PM -0500, Jerry Geis wrote:
> >>/ I had trouble with the update to 4.3.
> />>/
> />>/ /usr/sbin/sshd -d -D is telling me some other process is
> />>/ using port 22 and cant bind to it.
> />>/
> />>/ How do I tell what program that is and stop it?>
> /
> ># netstat -tupan | grep 22
>

I don't know whether you'll get different results or not, but I would use

lsof -i

HTH,

--
Collins Richey
     If you fill your heart with regrets of yesterday and the worries
of tomorrow, you
     have no today to be thankful for.