[sllug-members]: SSH question

Ryan Jackson rdjackso at gmail.com
Thu Apr 17 16:16:05 MDT 2008


On Thu, Apr 17, 2008 at 4:02 PM, Mark K. Spute <mks at certa.org> wrote:
> I ran netstat and got the following:
>
>  rcp     0       0       0.0.0.0:3022    0.0.0.0:*       LISTEN
>
>  What does this mean.  That it isn't listening at all?

No.  The netstat manpage pretty much explains these fields, so I'll
only touch on the one that's relevant.

The fourth field is the local address field.  This is the IP address
and port number that the program is listening on (we know it's
listening from the sixth field).  An IP address of 0.0.0.0 means that
the program is listening on all available IP addresses.  The next
field is the remote address, and is only relevant for non-listening
sockets.

So this means that your ssh server is listening on port 3022 on all IP
addresses you've configured on your machine.  This is fine.

>
>  Mark
>
>
>
>  Colby W. wrote:
>
> > On Thu, Apr 17, 2008 at 8:51 AM,  <mark.k.spute at l-3com.com> wrote:
> >
> > > I only have one of those cheapie qwerst supplied 4 port DSL routers.   I
> > >  think it only allows me to select groups of ports (i.e. ports 22
> through
> > >  25) and forward them to one IP address.
> > >
> > >  I told it the router to listen on port 3022 and forward that to the
> > >  server.  Then I set up the server to listen on port 3022 for SSH and
> > >  SSHD.  But since then, I can't SSH into the server.
> > >
> >
> > Did you restart sshd? Sorry, had to ask.
> >
> > What does `netstat -lntap` return for the listening port?
> >
> > Example output:
> > tcp        0      0 127.0.0.1:22            0.0.0.0:*               LISTEN
> -
> >
> >
> >  --- Colby
> > ______________________________________________________________________
> > See http://www.sllug.org/ for latest SLLUG news, information, links.
> > Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> > sllug-members at sllug.org
> > http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
> >
> >
>  ______________________________________________________________________
>  See http://www.sllug.org/ for latest SLLUG news, information, links.
>  Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
>  sllug-members at sllug.org
>  http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
>



-- 
Ryan Jackson


More information about the sllug-members mailing list