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 4.0.5.2

Fixed in version 4.1.0.0

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
X-X2Go-PR-Keywords: 
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
	ymir.das-netzwerkteam.de
X-Spam-Level: 
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 [127.0.0.1])
	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 ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (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 [98.130.1.152])
	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:
	DomainKey-Signature:Received:Received:To:From:Subject:Message-ID:
	Date:User-Agent:MIME-Version:Content-Type:
	Content-Transfer-Encoding; bh=FPo8hWfCYEkRHXlPcaaRRIkJmshSFkdhzg
	PbdZ1dsrs=; b=sDBf0z5mTmZhT/d3mUkC9uidxYD/sZXWH+SVSbzFIHwsD/MuQ8
	QWgWihcK+TNUrfLbRJEPRm4IkMiulJ6A+7IiS6nlNz2Vp5g15gucPUwfB0S2nAY9
	NyjNzHb/M6scdV+yxJfZ2dyxtz4fi98IDFdOi2gBUFo2tMkI+KDADqz/0=
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
	s=dkim-shared; d=perezterron.net;
	h=Received:Received:X-Originating-IP:To:From:Subject:Message-ID:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=UIon+fmPc692doVnLoua9CJAz1727TNed2pwGdyK09R7DUSwKYPbLwbLFyYW5V
	rUqOVvX702xcZCSqtnOn+AgbSAdwAhsiyKi1R3wlOnwdNYDYbkr9sI7m6rRu+B7w
	1rZVUbJzjjt9HqpPjmNc3jZ/86eFpKhkrWzacTICtl4uI=;
Received: (qmail 18476 invoked by uid 399); 17 Feb 2017 20:43:22 -0000
Received: from unknown (HELO ?10.0.0.87?) (enrique@perezterron.net@88.88.44.254)
  by mail307.opentransfer.com with ESMTPAM; 17 Feb 2017 20:43:22 -0000
X-Originating-IP: 88.88.44.254
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
 Thunderbird/45.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Package: x2goclient
Version: 4.0.5.2

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

Circumstances:
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:

ssh_host_rsa_key
ssh_host_rsa_key.pub
sshd_config

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.)

Regards,
Enrique

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Oct 12 16:21:46 2024; 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.