I start a x2goserver (Heuler because in the main repository we don't have x2go-keyring packet) in my Raspbian Stretch (Linux raspberrypi 4.9.59-v7+)
I launch the x2goclient on my Debian 9 and the session close inmediatly.
juanmi@juanmi:~$ x2goclient --debug
x2go-INFO-1> "Starting X2Go Client..."
x2go-INFO-4> "Translator: :/i18n/x2goclient_es_es found."
x2go-INFO-4> "Traductor: :/i18n/qt_es_es encontrado."
x2go-INFO-3> "Cliente X2Go iniciado."
x2go-DEBUG-../src/onmainwindow.cpp:546> "$HOME=/home/juanmi"
x2go-DEBUG-../src/onmainwindow.cpp:2365> Reading 3 sessions from config file.
x2go-DEBUG-../src/sessionbutton.cpp:341> Creating QPixmap with session icon: ":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/sessionbutton.cpp:341> Creating QPixmap with session icon: ":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/sessionbutton.cpp:341> Creating QPixmap with session icon: ":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/onmainwindow.cpp:12992> libssh not initialized yet. Initializing.
x2go-DEBUG-../src/onmainwindow.cpp:2851> Creating QPixmap with session icon: '":/img/icons/128x128/x2gosession.png"'.
x2go-INFO-8> "Iniciando conección con el servidor: 10.19.4.76:22" x2go-DEBUG-../src/onmainwindow.cpp:2952> Starting new ssh connection to server:"10.19.4.76":"22" krbLogin: false
x2go-DEBUG-../src/sshmasterconnection.cpp:175> SshMasterConnection, host "10.19.4.76"; port 22; user "pi"; useproxy false; proxyserver ""; proxyport 22
x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:252> SshMasterConnection, instance SshMasterConnection(0x1192590) created.
x2go-DEBUG-../src/sshmasterconnection.cpp:520> SshMasterConnection, instance SshMasterConnection(0x1192590) entering thread.
x2go-DEBUG-../src/sshmasterconnection.cpp:831> Session port before config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:841> Session port after config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:906> Session port before config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:916> Session port after config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:941> cserverAuth
x2go-DEBUG-../src/sshmasterconnection.cpp:982> state: 1
x2go-DEBUG-../src/sshmasterconnection.cpp:1263> Challenge authentication failed. Trying password mechanism if available.
x2go-DEBUG-../src/sshmasterconnection.cpp:1269> Password mechanism available. Continuing.
x2go-DEBUG-../src/sshmasterconnection.cpp:1273> Password authentication requested.
x2go-DEBUG-../src/sshmasterconnection.cpp:723> User authentication OK.
x2go-DEBUG-../src/sshmasterconnection.cpp:1740> LOGIN CHECK:"LOGIN OK
"
x2go-DEBUG-../src/sshmasterconnection.cpp:1743> don't have interaction
x2go-DEBUG-../src/sshmasterconnection.cpp:1776> LOOP FINISHED
x2go-DEBUG-../src/sshmasterconnection.cpp:1780> No interaction needed, continue session
x2go-DEBUG-../src/sshmasterconnection.cpp:727> Login Check - OK
x2go-DEBUG-../src/onmainwindow.cpp:3056> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3450> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "export HOSTNAME && x2golistdesktops"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x11965f0) Running masterCon->addChannelConnection(this, ' "be620548-005b-42b5-b9a6-27314a464788" ', ' "bash -l -c 'echo "X2GODATABEGIN:be620548-005b-42b5-b9a6-27314a464788"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; export HOSTNAME && x2golistdesktops; echo "X2GODATAEND:be620548-00" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1842> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1844> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1846> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7f8fc400cba0
x2go-DEBUG-../src/sshmasterconnection.cpp:2136> Executing remote: "bash -l -c 'echo "X2GODATABEGIN:be620548-005b-42b5-b9a6-27314a464788"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; export HOSTNAME && x2golistdesktops; echo "X2GODATAEND:be620548-005b-42b5-b9a6-27314a464788";'"
x2go-DEBUG-../src/sshmasterconnection.cpp:2159> New exec channel created.
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7f8fc400cba0; SshProcess object: 0
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:526> SSH finished: raw output (stdout): "X2GODATABEGIN:be620548-005b-42b5-b9a6-27314a464788
pi@:0
X2GODATAEND:be620548-005b-42b5-b9a6-27314a464788
"
x2go-DEBUG-../src/sshprocess.cpp:537> SSH finished: true - "pi@:0
" (0).
x2go-DEBUG-../src/onmainwindow.cpp:3918> "pi@:0
"
x2go-DEBUG-../src/onmainwindow.cpp:4478> Executing remote command: "X2GODPI=95 x2gostartagent 1280x1024 adsl 16m-jpeg-9 unix-kde-depth_24 es auto 1 S 1XSHADpiXSHAD:0"
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 1: "X2GODPI=95 x2gostartagent 1280x1024 adsl 16m-jpeg-9 unix-kde-depth_24 es auto 1 S 1XSHADpiXSHAD:0"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0xf5a6c0) Running masterCon->addChannelConnection(this, ' "c887515e-b956-47a1-9801-1f46be1a66c7" ', ' "bash -l -c 'echo "X2GODATABEGIN:c887515e-b956-47a1-9801-1f46be1a66c7"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; X2GODPI=95 x2gostartagent 1280x1024 adsl 16m-jpeg-9 unix-kde-depth" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1842> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1844> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1846> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7f8fc400cba0
x2go-DEBUG-../src/sshmasterconnection.cpp:2136> Executing remote: "bash -l -c 'echo "X2GODATABEGIN:c887515e-b956-47a1-9801-1f46be1a66c7"; export PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; X2GODPI=95 x2gostartagent 1280x1024 adsl 16m-jpeg-9 unix-kde-depth_24 es auto 1 S 1XSHADpiXSHAD:0; echo "X2GODATAEND:c887515e-b956-47a1-9801-1f46be1a66c7";'"
x2go-DEBUG-../src/sshmasterconnection.cpp:2159> New exec channel created.
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7f8fc400cba0; SshProcess object: 1
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:526> SSH finished: raw output (stdout): "X2GODATABEGIN:c887515e-b956-47a1-9801-1f46be1a66c7
50
6f60315f1030c31aeb95512c9f7b74c8
3408
pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24
50620
50621
50622
X2GODATAEND:c887515e-b956-47a1-9801-1f46be1a66c7
"
x2go-DEBUG-../src/sshprocess.cpp:537> SSH finished: true - "50
6f60315f1030c31aeb95512c9f7b74c8
3408
pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24
50620
50621
50622
" (1).
x2go-DEBUG-../src/onmainwindow.cpp:5297> Agent output: "50
6f60315f1030c31aeb95512c9f7b74c8
3408
pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24
50620
50621
50622
"
x2go-DEBUG-../src/sshprocess.cpp:381> Starting tunnel via SshProcess object 2: "localhost":50620 -> "localhost":51620
x2go-DEBUG-../src/onmainwindow.cpp:5900> "Starting NX proxy, command: nxproxy -S nx/nx,options=/home/juanmi/.x2go/S-pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24/options:50"
x2go-DEBUG-../src/sshprocess.cpp:157> Direct tunnel: waiting for connections on "localhost":51620
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "
NXPROXY - Version 3.5.0
Copyright (C) 2001, 2010 NoMachine.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Proxy running in client mode with pid '21992'.
Session: Starting session at 'Fri Jan 5 09:34:31 2018'.
Info: Using abstract X11 socket in kernel namespace for accessing DISPLAY=:0.
Info: Connecting to remote host 'localhost:51620'.
Info: Connection to remote proxy 'localhost:51620' established.
"
x2go-DEBUG-../src/sshprocess.cpp:109> New TCP connection.
x2go-DEBUG-../src/sshprocess.cpp:114> New socket: 14
x2go-DEBUG-../src/sshmasterconnection.cpp:2034> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2051> New channel:0x7f8fc400cba0
x2go-DEBUG-../src/sshmasterconnection.cpp:2057> Forwarding parameters: from remote ("localhost":50620) to local ("localhost":35172)
x2go-DEBUG-../src/sshmasterconnection.cpp:2094> Temporary session port after config file parse: 50620
x2go-DEBUG-../src/sshmasterconnection.cpp:2098> Temporary session host after config file parse: localhost
x2go-DEBUG-../src/sshmasterconnection.cpp:2128> New channel forwarded.
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Connection with remote proxy completed.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Warning: Unrecognized session type 'unix-kde-depth_24'. Assuming agent session.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Using ADSL link parameters 1408/24/1/0.
Info: Using cache parameters 4/4096KB/8192KB/8192KB.
Info: Using pack method '16m-jpeg-9' with session 'unix-kde-depth_24'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: No suitable cache file found.
Info: Forwarding X11 connections to display ':0'.
Session: Session started at 'Fri Jan 5 09:34:31 2018'.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Established X server connection.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Info: Using shared memory parameters 0/0K.
"
x2go-DEBUG-../src/onmainwindow.cpp:11370> "Searching proxy window: X2GO-pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24"
x2go-DEBUG-../src/onmainwindow.cpp:12980> "Searching window with title: X2GO-pi-50-1515141410_stS1XSHADpiXSHADPP0_dp24"
x2go-DEBUG-../src/onmainwindow.cpp:11376> "Proxy window found: 94371992"
x2go-DEBUG-../src/sshmasterconnection.cpp:2208> EOF on channel 0x7f8fc400cba0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2331> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2335> Channel closed.
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Error: Failure reading from the peer proxy.
"
x2go-DEBUG-../src/onmainwindow.cpp:6372> Proxy wrote on stderr: "Error: Connection with remote peer broken.
Error: Please check the state of your network and retry.
Session: Terminating session at 'Fri Jan 5 09:34:31 2018'.
Session: Session terminated at 'Fri Jan 5 09:34:31 2018'.
"
x2go-DEBUG-../src/onmainwindow.cpp:6225> Deleting Proxy.
x2go-DEBUG-../src/onmainwindow.cpp:6274> Waiting for proxy to exit.
x2go-DEBUG-../src/onmainwindow.cpp:6303> Deleting SSH connection instance.
x2go-DEBUG-../src/sshmasterconnection.cpp:793> SshMasterConnection, instance SshMasterConnection(0x1192590) waiting for thread to finish.
x2go-DEBUG-../src/sshmasterconnection.cpp:1953> Disconnecting ...
x2go-DEBUG-../src/sshmasterconnection.cpp:1964> Deleting channel connections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1972> Disconnecting session.
x2go-DEBUG-../src/sshmasterconnection.cpp:1978> Deleting sockets.
x2go-DEBUG-../src/sshmasterconnection.cpp:1985> All channels closed and session disconnected. Quitting session loop.
x2go-DEBUG-../src/sshmasterconnection.cpp:797> SshMasterConnection, instance SshMasterConnection(0x1192590) thread finished.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshmasterconnection.cpp:804> SshMasterConnection, instance SshMasterConnection(0x1192590) finished destructor.
x2go-DEBUG-../src/onmainwindow.cpp:6305> Deleted SSH connection instance.
x2go-DEBUG-../src/onmainwindow.cpp:6355> Finished proxy.
x2go-DEBUG-../src/onmainwindow.cpp:1626> Close event received.
x2go-DEBUG-../src/onmainwindow.cpp:1650> Quitting from tray icon and closing application.
x2go-INFO-6> "Cerrando el cliente X2Go ..."
x2go-DEBUG-../src/onmainwindow.cpp:1451> Saving settings ...
x2go-DEBUG-../src/onmainwindow.cpp:1460> Saved settings.
x2go-DEBUG-../src/onmainwindow.cpp:1618> libssh finalized.
x2go-INFO-7> "Cliente X2Go finalizado. Cerrando vínculos."
x2go-DEBUG-../src/onmainwindow.cpp:561> Destroying X2Go Client's main window.
x2go-DEBUG-../src/onmainwindow.cpp:564> Finished destructor hooks for X2Go Client's main window.