From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 13:59:42 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F2603EAA for ; Wed, 20 Feb 2013 13:59:42 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [66.251.72.79]) by mx1.freebsd.org (Postfix) with ESMTP id B1B083D2 for ; Wed, 20 Feb 2013 13:59:42 +0000 (UTC) Received: from nber6 (nber6.nber.org [66.251.72.76]) by mail2.nber.org (8.14.4/8.14.4) with ESMTP id r1KDd8kR043234; Wed, 20 Feb 2013 08:39:09 -0500 (EST) (envelope-from feenberg@nber.org) Date: Wed, 20 Feb 2013 08:26:31 -0500 (EST) From: Daniel Feenberg X-X-Sender: feenberg@nber6 To: Anton Shterenlikht Subject: Re: cannot ssh into a box with DHCP assigned IP address In-Reply-To: <201302200945.r1K9jpq7029535@mech-cluster241.men.bris.ac.uk> Message-ID: References: <201302200945.r1K9jpq7029535@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.39/RELEASE, bases: 20130220 #9487183, check: 20130220 clean Cc: ml@my.gd, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2013 13:59:43 -0000 > From: Fleuriot Damien > To: mexas@bristol.ac.uk > Subject: Re: cannot ssh into a box with DHCP assigned IP address > Date: Wed, 20 Feb 2013 10:31:22 +0100 > Cc: freebsd-questions@freebsd.org > > On Feb 20, 2013, at 10:28 AM, Anton Shterenlikht wrote: > > > I have a laptop with FreeBSD -current, > > with ip address assigned via DHCP. > > The laptop has neither a static ip address, > > nor a domain. > > > > I can ping the laptop fine, but cannot > > ssh into it. The sshd is running, /etc/ssh/ssd_config > > seems fine, /etc/hosts.allow is fine. > > However, /etc/hosts is just the default: While on the problem machine, can you ssh to localhost? ssh to the IP address? I would suspect the problem is in /etc/hosts.allow or /etc/hosts.deny, or perhaps the subnet mask is incorrect. The lack of a domain should not be a problem. daniel feenberg