Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2005 15:05:55 -0500
From:      Will Maier <willmaier@ml1.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: FBSD 5.4 - netstat -p tcp
Message-ID:  <20050930200555.GK7691@localdomain>
In-Reply-To: <47f8d9310509300935l6cf2aeddj40541237507c2db6@mail.gmail.com>
References:  <47f8d9310509300915k8f9da96hb91b195dffa2b4bc@mail.gmail.com> <cb5206420509300932p12128f1dn430fbbf9c39a132@mail.gmail.com> <47f8d9310509300935l6cf2aeddj40541237507c2db6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > On 9/30/05, Brian Henning <henninb@gmail.com> wrote:
> > > Using FBSD 5.4 and trying to see if there are open ports on my
> > > machine. when i use netstat -p tcp, it yields no results, but i know
> > > for a fact that i am running an sshd server on the machine because i
> > > am logged in remotely with putty.

> On 9/30/05, Andrew P. <infofarmer@gmail.com> wrote:
> > Try the -a switch:
> > # netstat -ap tcp

On Fri, Sep 30, 2005 at 11:35:08AM -0500, Brian Henning wrote:
> i have tried that with no luck :(

(Please don't top post -- I've reordered the quoted sections above)

lsof often works for me where sockstat (sockstat -4) or netstat
haven't:

    # lsof -ni

-- 

o--------------------------{ Will Maier }--------------------------o
| jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net |
| \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu |
*------------------[ BSD Unix: Live Free or Die ]------------------*




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050930200555.GK7691>