On Tue, 16 Feb 2010 14:23:31 +0000 Kelly Dunlop <ke...@xyzzy.org.uk> 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 <step...@rowles.org.uk> 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 on benden and tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN on landing > Then: > > ps -ef | grep sshd > > just to check that sshd is running. benden:~# ps -ef | grep sshd root 5557 1 0 Feb15 ? 00:00:00 /usr/sbin/sshd root 12597 17238 0 16:49 pts/2 00:00:00 grep sshd landing:~$ ps -ef |grep sshd root 7615 1 0 13:26 ? 00:00:00 /usr/bin/sshd root 7671 7528 0 16:48 tty1 00:00:00 grep sshd I suspect some of the differences are due to the fact I have sid running on benden but squeeze on landing (in case anyone wonders about hostnames they are taken from Anne McAffreys Pern stories, so have a fort and a telgar as well) -- John Lewis using Debian sid -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --------------------------------------------------------------