From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 15:53:17 2006 Return-Path: X-Original-To: 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 DB22616A420 for ; Thu, 23 Feb 2006 15:53:17 +0000 (GMT) (envelope-from wc_fbsd@xxiii.com) Received: from cartman.xxiii.com (cartman.xxiii.com [208.62.177.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCA7143D72 for ; Thu, 23 Feb 2006 15:53:13 +0000 (GMT) (envelope-from wc_fbsd@xxiii.com) Received: from PC02.xxiii.com (lan23.xxiii.com [208.62.177.50]) by cartman.xxiii.com (8.13.4/8.13.4) with ESMTP id k1NFrBYr009425; Thu, 23 Feb 2006 10:53:11 -0500 (EST) (envelope-from wc_fbsd@xxiii.com) From: wc_fbsd@xxiii.com Message-Id: <6.2.5.6.2.20060223104649.03202fc0@xxiii.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6 Date: Thu, 23 Feb 2006 10:53:13 -0500 To: "Lei Sun" , questions@freebsd.org In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Problem connecting a freebsd server using ssh 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: Thu, 23 Feb 2006 15:53:18 -0000 At 03:50 AM 2/23/2006, Lei Sun wrote: >1. ssh from Freebsd_A to Freebsd_B: I got "Read from socket failed: >Connection reset by peer" error. >2. ssh from windows xp (putty) to Freebsd_B: logs me in fine >3. try to ssh from Freebsd_A to Freebsd_B again, got the same error I didn't did through your logs extensively. But when I've run into similar problems recently, it's usually because one of the clients is using an older ( < v2) of the protocol. At some point back in fBSD 5.x support for the less-secure v1 ssh protocol became disabled by default. Try editing /etc/ssh/sshd_config and look for a "Protocol" option. Try setting it to "Protocol 1,2" However, the level one supposedly has some security holes, and you might not want to use it over the public Internet. I just use it with my stupid windoze client that only does level one, to connect over our own LAN, so I don't care. -Wayne