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

Top Page

Reply to this message
Author: Kelly Dunlop
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] unable to connect from one system to another using ssh

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.

Then:

    ps -ef | grep sshd


just to check that sshd is running.

I might be teaching grandmother (or grandfather) here but I'd check the basics first.

Of course this assumes you have a connection to benden active but from your comments
you do have.

Good Luck
Kelly
--
Kelly Dunlop
kelly@???