[X2Go-Dev] "SSH daemon could not be started" dialog on Linux

Jan Engelhardt jengelh at inai.de
Wed Dec 7 13:31:08 CET 2016


x2goclient-4.0.5.2 always throws a dialog:


   """SSH daemon could not be started.

    You have enabled Remote Printing or File Sharing.
    These features require a running and functioning ..."""

Reason:
appDir equals /usr/bin, there is no /usr/bin/sshd on typical Linux 
installations. This (ugly) change restores the desired behavior, for 
example:

--- x2goclient-4.0.5.2.orig/src/onmainwindow.cpp
+++ x2goclient-4.0.5.2/src/onmainwindow.cpp
@@ -10484,7 +10484,7 @@ bool ONMainWindow::startSshd()
 
     sshd=new QProcess ( this );
 
-    QString binary = appDir + "/sshd";
+    QString binary = appDir + "/../sbin/sshd";
 #ifdef Q_OS_DARWIN
     binary = "/usr/sbin/sshd";
 #endif // defined (Q_OS_DARWIN)


More information about the x2go-dev mailing list