From rpr.nospam@gmail.com  Thu Oct  8 21:01:51 2015
Received: (at 765) by bugs.x2go.org; 8 Oct 2015 19:01:52 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	RCVD_IN_DNSWL_BLOCKED,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 25AFE5DA80
	for <765@bugs.x2go.org>; Thu,  8 Oct 2015 21:01:51 +0200 (CEST)
Received: by ioii196 with SMTP id i196so68317402ioi.3
        for <765@bugs.x2go.org>; Thu, 08 Oct 2015 12:01:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=za5f3fskw42Nrk907iiNb3Z7h6cH69RBcKrQoiavqyQ=;
        b=jFIhwu6SQnAtNo87zqFROxoLcm1lKegsBTZm8n9Gizwjnth0mOX7cWqksFR4jiiJEd
         MyBdrbcuOp3F0P6CdDAa9riqFPZCi9W1ShuqUvrgNJcDMH1pmk7R5GTE3LydKYrFsIFj
         gH1hgZ3mQts9UNDDy1ZSlw2EmrsrCK9ZL7XaWwGhpaqf2hP8a8iSY9kS6EIWqlp9wcM/
         hY8VXsvzxq1f1TFN5unxpkm65M6xShwscgAeamM6ynzmZGN1WkY3BxbwI/PkiIB0KXHc
         GNcInwHsAGNyQHUCfI/xoSGTIXRHlnzRhb6J1tK4FRXlAW+qns0IcZus9p5tJvIK1rQ4
         ar/Q==
MIME-Version: 1.0
X-Received: by 10.107.10.140 with SMTP id 12mr10896042iok.160.1444330909525;
 Thu, 08 Oct 2015 12:01:49 -0700 (PDT)
Received: by 10.107.50.194 with HTTP; Thu, 8 Oct 2015 12:01:49 -0700 (PDT)
Date: Thu, 8 Oct 2015 21:01:49 +0200
Message-ID: <CAN-5ny=PC8wpw1kd_pngVjXAB1J4tEZt2P37UprxfhKaVa8sfQ@mail.gmail.com>
Subject: Re: Kex Error in X2Go client
From: rpr nospam <rpr.nospam@gmail.com>
To: 765@bugs.x2go.org
Content-Type: text/plain; charset=UTF-8

Hi!

I also saw this issue while trying to connect with X2Go Client for
Windows (v. 4.0.5.0) to x2goserver (v. 4.0.1.19-0~1064~ubuntu14.04.1)
on a Linux Mint 17 machine.

The connection worked fine until the SSH server on the Linux machine
was reconfigured in order to harden it (see the recommendations in
https://stribika.github.io/2015/01/04/secure-secure-shell.html).

That reconfiguration allowed only the following host keys and key
exchange algorithms:

HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key

KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256

The Elliptic Curve Digital Signature Algorithm (ECDSA) (and the
corresponding /etc/ssh/ssh_host_ecdsa_key) is not enabled because its
implementation may use a faulty pseudo-random number generator (i.e.
containing a back door created by NSA) as explained in some pages
referred by the aforementioned article.

After some investigation I found how to get rid of the error: in
C:\Users\username\ssh\known_hosts remove the line corresponding to the
x2goserver host and ecdsa-sha2-nistp256 key exchange algorithm:

x2goserver_host_address ecdsa-sha2-nistp256 ...

-- rpr.

