I also like to use lsof.
lsof -ni | grep LISTEN
look to see if sshd is listening on port 22.
-ray
On 25 Feb 2003, Ron Johnson wrote:
> On Mon, 2003-02-24 at 22:21, Andrew S. Johnson wrote:
> > On Monday 24 February 2003 10:04 pm, Chris Bloch wrote:
> > > Ron Johnson wrote:
> > > > On Mon, 2003-02-24 at 19:37, Chris Bloch wrote:
> > > >
> > > >>I am trying to set up ssh and vnc into my box, and have configured my
> > > >>di-604 router/switch to forward ports to my dhcp address inside my
> > > >>network. How do I go about adding these ports on my linux box? I would
> > > >>prefer tyhe generic answer, and I have tried to run the sshd program to
> > > >> see if it opens the port. Any help would be appreciated. I am running
> > > >>libranet 2.7
> > > >
> > > >
> > > > Don't know exactly what you mean by "add the ports on the linux box".
> > > > The ports are already there...
> > > >
> > > How do I see which services are on inside my box though? How do I know
> > > if the sshd daemon is running and listening, and on what port?
> >
> > As root, run netstat -nap. The -p option only works as root, -na works for anyone.
>
> You probably wanmt to grep that stream for 'LISTEN ', to screen
> out stuff like X, gpm, any GUI app, etc.
>
> Another crucial tool is nmap.
>
>
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Ray DeJean http://www.r-a-y.org Systems Engineer Southeastern Louisiana University IBM Certified Specialist AIX Administration, AIX Support =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ___________________ Nolug mailing list nolug@nolug.orgReceived on 02/25/03
This archive was generated by hypermail 2.2.0 : 12/19/08 EST