[X2Go-Dev] Help with x2goclient's sshd_config
Mike DePaulo
mikedep333 at gmail.com
Mon May 23 14:14:57 CEST 2016
Hi guys,
Background:
I am trying to fix bug #1002 completely; there appear to be multiple
underlying bugs. One of them is that unless I start x2goclient from a
cygwin shell, cygwin sshd doesn't actually listen its port.
Anyway, at the moment I am trying to make x2goclient start sshd with
debug logging when x2goclient is launched with --debug, but I am
unable to do so. Every time I launch x2goclient, sshd_config is
regenerated without the debug line.
I've tried 2 different approaches, you can see them below. Ignore the
x2goDebug line.
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 925085b..a1d92a8 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -10292,6 +10292,8 @@ void ONMainWindow::generateEtcFiles()
/* This may need some sanitization, i.e., appDir could
potentially include whitespace. */
<<appDir<<"/sftp-server\n";
#endif
+ x2goDebug<<"LogLevel DEBUG1";
+ out<<"LogLevel DEBUG1";
file.close();
x2goDebug<<etcDir +"/sshd_config created.";
}
----------------
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 925085b..928da70 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -10293,6 +10293,13 @@ void ONMainWindow::generateEtcFiles()
<<appDir<<"/sftp-server\n";
#endif
file.close();
+ if (debugging)
+ {
+ QTextStream out2 ( &file );
+ x2goDebug<<"LogLevel DEBUG1";
+ out2<<"LogLevel DEBUG1";
+ file.close();
+ }
x2goDebug<<etcDir +"/sshd_config created.";
}
More information about the x2go-dev
mailing list