Re: [Hampshire] unable to connect from one system to another…

Top Page

Reply to this message
Author: john lewis
Date:  
To: hampshire
Subject: Re: [Hampshire] unable to connect from one system to another using ssh
On Tue, 16 Feb 2010 16:56:07 +0000
john lewis <johnlewis@???> wrote:

> On Tue, 16 Feb 2010 14:23:31 +0000
> Kelly Dunlop <kelly@???> wrote:
>
> >
> > Hi John,
> >
> >
> > On Tue, Feb 16, 2010 at 01:46:43PM +0000, john lewis wrote:
> > > On Tue, 16 Feb 2010 12:43:01 +0000
> > > Stephen Rowles <stephen@???> wrote:
> > >
> > > > On 02/16/2010 12:05 PM, john lewis wrote:
> > > SSH-2.0-OpenSSH_5.1p1 Debian-5
> > > (it is OpenSSH_5.3p1 Debian-1 on benden)
> > >
> > > but eventually get "Connection closed by foreign host"
> > >
> > > if I try "telnet landing 22" from benden I connect OK
> > >
> > > but if I try "telnet benden 22" from landing I get
> > > trying 192.168.1.6...
> > >
> > > and then it hangs
> > >
> > > until
> > >
> > > telnet: Unable to connect to remote host: Connection timed out
> > >
> > > looking at /etc/services it has two lines
> > >
> > > ssh 22/tcp    # SSH Remote Login Protocol
> > > ssh 22/udp

> >
> >
> > As Hugo says that file is just a mapping of names to port numbers
> > and won't actually tell you what is running.
> >
> > I'd try:
> >
> >     netstat -atn

> >
> > and check for a tcp line with port 22 (:22) in LISTEN mode eg:
> >
> >     tcp        0      0 0.0.0.0:22
> > 0.0.0.0:*               LISTEN     

> >
> > which tells you sshd is running and listening on port 22.
>
> I get
>
> tcp6    0    0 :::22        :::*     LISTEN


woops!

I missed the first line

tcp    0      0 0.0.0.0:22    0.0.0.0:*     LISTEN 



--
John Lewis
using Debian sid