From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 19:53:22 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60FD616A41F for ; Wed, 31 Aug 2005 19:53:22 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9C2443D46 for ; Wed, 31 Aug 2005 19:53:21 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 45FD0CCBE75 for ; Wed, 31 Aug 2005 15:53:20 -0400 (EDT) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend1.internal (MEProxy); Wed, 31 Aug 2005 15:53:20 -0400 X-Sasl-enc: eG0+XgzbHHg1MMVaQuH6xEmWc4kslKpqaaJjPhBtfc8d 1125517998 Received: from merkur (host-66-202-74-42.choiceone.net [66.202.74.42]) by frontend3.messagingengine.com (Postfix) with ESMTP id 8D24B1E8 for ; Wed, 31 Aug 2005 15:53:18 -0400 (EDT) Received: by merkur (nbSMTP-1.00) for uid 1000 willmaier@ml1.net; Wed, 31 Aug 2005 14:53:23 -0500 (CDT) Date: Wed, 31 Aug 2005 14:53:22 -0500 From: Will Maier To: freebsd-questions@freebsd.org Message-ID: <20050831195322.GG31769@localhost.localdomain> Mail-Followup-To: freebsd-questions@freebsd.org References: <43160607.9060207@adelphia.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43160607.9060207@adelphia.net> User-Agent: Mutt/1.5.6+20040907i Subject: Re: SSH times out - "Server unexpectedly closed network connection" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 19:53:22 -0000 On Wed, Aug 31, 2005 at 03:33:27PM -0400, Robert G. wrote: > SSH doesn't appear to be working on my remote server. I can > connect fine, and am prompted with "login as: " with Putty, but > when I enter my username it sits and hangs there for about a > minute before a message comes up that says "Server unexpectedly > closed network connection". SSH was working fine this morning > around 11am. I just got back and now it's hanging. The only > changes to the /etc/ssh/sshd_config that I made were to add my one > user account. I rebooted and it worked fine this morning, so I > don't know what the problem is now as I haven't touched it. > Any ideas? Could be DNS-related. # grep -i DNS /etc/ssh/sshd_config UseDNS no FreeBSD has UseDNS on by default; I had to turn it off. I was experiencing a similar hang-for-a-while-then-die thing. If that doesn't help, look at the output of ssh -vvv $REMOTE_HOST. -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------*