X2Go Bug report logs - #1150
x2goclient on windows creates host_rsa_key, sshd wants host_dsa_key

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Enrqiue Perez-Terron <enrique@perezterron.net>

Date: Fri, 17 Feb 2017 20:55:01 UTC

Severity: normal

Tags: build-win32, pending

Merged with 1105, 1110, 1114, 1115, 1118, 1128

Found in version

Fixed in version

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1150: x2goclient on windows creates host_rsa_key, sshd wants host_dsa_key
Reply-To: Enrqiue Perez-Terron <enrique@perezterron.net>, 1150@bugs.x2go.org
Resent-From: Enrqiue Perez-Terron <enrique@perezterron.net>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 17 Feb 2017 20:55:01 +0000
Resent-Message-ID: <handler.1150.B.148736461329292@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1150
X-X2Go-PR-Package: x2goclient
Received: via spool by submit@bugs.x2go.org id=B.148736461329292
          (code B); Fri, 17 Feb 2017 20:55:01 +0000
Received: (at submit) by bugs.x2go.org; 17 Feb 2017 20:50:13 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.9 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	T_DKIM_INVALID,URIBL_BLOCKED autolearn=no version=3.3.2
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id EB3795DA4D
	for <submit@bugs.x2go.org>; Fri, 17 Feb 2017 21:50:11 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([])
	by localhost (ymir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id PY-E5xACHxvA for <submit@bugs.x2go.org>;
	Fri, 17 Feb 2017 21:50:04 +0100 (CET)
X-Greylist: delayed 400 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Fri, 17 Feb 2017 21:50:04 CET
Received: from mail307.opentransfer.com (mail307.opentransfer.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 2C4F75DA4C
	for <submit@bugs.x2go.org>; Fri, 17 Feb 2017 21:50:04 +0100 (CET)
Comment: DKIM? See http://www.dkim.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=perezterron.net; s=dkim-shared; x=1487969404; h=Comment:
	Content-Transfer-Encoding; bh=FPo8hWfCYEkRHXlPcaaRRIkJmshSFkdhzg
	PbdZ1dsrs=; b=sDBf0z5mTmZhT/d3mUkC9uidxYD/sZXWH+SVSbzFIHwsD/MuQ8
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
	s=dkim-shared; d=perezterron.net;
Received: (qmail 18476 invoked by uid 399); 17 Feb 2017 20:43:22 -0000
Received: from unknown (HELO ? (enrique@perezterron.net@
  by mail307.opentransfer.com with ESMTPAM; 17 Feb 2017 20:43:22 -0000
To: submit@bugs.x2go.org
From: Enrqiue Perez-Terron <enrique@perezterron.net>
Message-ID: <4d97ce15-3baa-94c2-9d3a-b026dcb95d4a@perezterron.net>
Date: Fri, 17 Feb 2017 21:43:30 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Package: x2goclient

Error: message: 
SSH daemon failed to open its public host key

I just installed the windows client on a Windows 10, 64-bit PC, 
defined a session (which uses a key file for authentication
and logs into an Ubuntu server given by IP address, where I had 
just installed the x2go server, and additionally installed gnome) 
and launched the session.

Afterward the directory C:/Users/Enrique/.x2go/etc contained the following files:


Using cygwin on the same windows PC, I ran this command:

ssh-keygen -t dsa -b 1024 -N "" -f "C:/Users/Enrique/.x2go/etc/ssh_host_dsa_key" -q

After this, I restarted x2goclient, and the error message did not appear.

Looking at the source, it appears that the error message is emitted by
ONMainWindow::createRSAKey(), when it fails to open the file given
by the QFile object "rsa".

I observed that the createRSAKey() conditionally sets the file name on 
the object to ssh_host_dsa_key.pub, if compiled for Windows.

However, ONMainWindow::startWinServers() seems to be called unconditionally 
with RSA_KEY_TYPE, creating the rsa key file only.

I don't know why the file name in question is changed to *_dsa_* on Windows,
but if there is a good reason, the call to generateHostKey() 
in startWinServers should probably be modified accordingly. StartWinServers()
appears to be called only when compiled for Windows.

(For the record, even after running the ssh-keygen command, x2goclient
still appears to fail at starting a local sshd server, but I have not yet
investigated that. Perhaps listening on the socket port 7022 needs a 
privilege or raised "integrity label" on Windows. A black window appears,
but disappears after a while.)


Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Jun 7 02:51:16 2023; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.