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
Control: forcemerge -1 1105
There have been extensive changes in how X2Go Client generates keys and starts sshd. This report is a duplicate of a few others. Please test 4.1.0.0 once binary builds are available.
Mihai
Processing control commands:
forcemerge -1 1105 Bug #1150 [x2goclient] x2goclient on windows creates host_rsa_key, sshd wants host_dsa_key Bug #1114 {Done: X2Go Release Manager <git-admin@x2go.org>} [x2goclient] The SSH server is currently not configured correctly 'reopen' may be inappropriate when a bug has been closed with a version; all fixed versions will be cleared, and you may need to re-add them. Bug reopened No longer marked as fixed in versions 4.0.5.3. No longer marked as fixed in versions 4.0.5.3. No longer marked as fixed in versions 4.0.5.3. No longer marked as fixed in versions 4.0.5.3. No longer marked as fixed in versions 4.0.5.3. No longer marked as fixed in versions 4.0.5.3. Bug #1115 [x2goclient] The SSH server is currently not configured correctly There is no source info for the package 'x2goclient' at version '4.0.5.3' with architecture '' Unable to make a source version for version '4.0.5.3' Marked as fixed in versions 4.0.5.3. Marked as fixed in versions 4.0.5.3. Marked as fixed in versions 4.0.5.3. Marked as fixed in versions 4.0.5.3. Marked as fixed in versions 4.0.5.3. Marked as fixed in versions 4.0.5.3. Bug #1150 [x2goclient] x2goclient on windows creates host_rsa_key, sshd wants host_dsa_key There is no source info for the package 'x2goclient' at version '4.0.5.3' with architecture '' Unable to make a source version for version '4.0.5.3' Marked as fixed in versions 4.0.5.3. Added tag(s) build-win32 and pending. Bug #1105 [x2goclient] reverse tunnel fails on windows client Bug #1110 [x2goclient] Failed to start user mode OpenSSH server Bug #1118 [x2goclient] Share folder is broken for x2goclient-4.0.5.2-2016.09.20-setup.exe Bug #1128 [x2goclient] SSH daemon failed to open its public host key. Merged 1105 1110 1114 1115 1118 1128 1150
-- 1105: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1105 1110: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1110 1114: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1114 1115: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1115 1118: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1118 1128: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1128 1150: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1150 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems