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 12:43:01 +0000
Stephen Rowles <stephen@???> wrote:

> On 02/16/2010 12:05 PM, john lewis wrote:
> > I know want to run unison on landing to synchronise the geneweb
> > directory on landing with a geneweb directory on benden and for
> > this I need to be able to setup ssh on landing to allow "ssh benden"
> >
> > But I get an error message
> > ssh: connect to host benden port 22: Connection timed out
> >
>
> Some simple diagnostics to get further with this problem.
>
> First is to isolate the source of the problem, whether it is SSH, or
> simply the network / DNS.
>
> Try using telnet to connect to the port instead, for example, if I
> connect to my local machine on port 22, I get the following, which
> clearly shows that OpenSSH is running.
>
> ]$ telnet localhost 22
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> SSH-2.0-OpenSSH_5.2
> ^]
> telnet> close
> Connection closed.


following on from Sean's comment I have installed telnet and run the
command suggested above. On both benden & landing it hangs at this
point:

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


/etc/ssh/sshd.config has a line

Port 22

so is there something else blocking off port 22?

--
John Lewis
using Debian sid