From owner-freebsd-stable@freebsd.org Thu Apr 14 10:33:40 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 620C9B1032F for ; Thu, 14 Apr 2016 10:33:40 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F164C1A29 for ; Thu, 14 Apr 2016 10:33:39 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id u3EAKjmn064677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Apr 2016 12:20:45 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: hausen@punkt.de Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id u3EAKe7R072065; Thu, 14 Apr 2016 17:20:40 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: OpenSSH changes between 10.2 and 10.3 ... To: "Patrick M. Hausen" , freebsd-stable References: <2DD338AE-8DF8-4E59-AE3F-11DF704E455A@punkt.de> From: Eugene Grosbein Message-ID: <570F6EF8.7060209@grosbein.net> Date: Thu, 14 Apr 2016 17:20:40 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <2DD338AE-8DF8-4E59-AE3F-11DF704E455A@punkt.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 10:33:40 -0000 On 14.04.2016 16:44, Patrick M. Hausen wrote: > Hi, all, > > minor problem/annoyance here: > > root@noc:/etc/ssh # ssh admin@10.4.0.62 > Unable to negotiate with 10.4.0.62 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,none > root@noc:/etc/ssh # uname -a > FreeBSD noc.pluspunkthosting.de 10.3-RELEASE FreeBSD 10.3-RELEASE #3: Wed Apr 13 14:46:57 CEST 2016 root@noc.pluspunkthosting.de:/usr/obj/usr/src/sys/GENERIC amd64 > > Of course I was able to find http://www.openssh.com/legacy.html myself. > > FreeBSD 10.2 uses OpenSSH 6.6.x while 10.3 imported 7.2. > So far so good. > > The recommended method from the document above works on the > command line: > > ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@10.4.0.62 > > But if I add > > KexAlgorithms +diffie-hellman-group1-sha1 > > to /etc/ssh/ssh_config, that does not change anything. It does change for me. And helps. Make double sure you have added KexAlgorithms to system wide defaults section of ssh_config and not after limiting "Host" directive, or similar.