Subject: x2go connection error between Fedora 38 and 39.

From: Yann Golanski <[email-masked]>
Date: Thu, 30 Nov 2023 10:17:24 +0000

Package: x2go
Version: 4.1

I am trying to connect via SSH and I get the following error: Connection to channel went wrong.
After that, the client core dumps. The full log below.

Any idea?

Client machine:
    Linux nightwatch 6.6.2-101.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 22 21:31:13 UTC 2023 x86_64 GNU/Linux
    Client v. 4.1.2.3 (Qt - 5.15.11)
    x2goclient-4.1.2.3-1.fc38.x86_64

Server machine:
    Linux berserk 6.6.2-201.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 22 21:31:42 UTC 2023 x86_64 GNU/Linux
    x2goserver-4.1.0.4-2.fc39.x86_64

> x2go-WARNING-1> English language requested, not loading translator.
> x2go-WARNING-1> English language requested, not loading translator.
> x2go-INFO-3> "Started X2Go Client."
> x2go-DEBUG-../src/onmainwindow.cpp:655> "$HOME=/home/yg"
> x2go-DEBUG-../src/onmainwindow.cpp:2392> Reading 1 sessions from config file.
> x2go-DEBUG-../src/onmainwindow.cpp:13651> libssh not initialized yet. Initializing.
> x2go-DEBUG-../src/onmainwindow.cpp:2888> Creating QPixmap with session icon: '":/img/icons/128x128/x2gosession.png"'.
> x2go-DEBUG-../src/onmainwindow.cpp:2971> Starting session with key.
> x2go-INFO-8> "Starting connection to server: berserk:22"
> x2go-DEBUG-../src/onmainwindow.cpp:3011> Starting new ssh connection to server:"berserk":"22" krbLogin: false
> x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host "berserk"; port 22; user "yg"; useproxy false; proxyserver ""; proxyport 22
> x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.
> x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance SshMasterConnection(0x7fdf500062c0) created.
> x2go-DEBUG-../src/sshmasterconnection.cpp:492> SshMasterConnection, instance SshMasterConnection(0x7fdf500062c0) entering thread.
> x2go-DEBUG-../src/sshmasterconnection.cpp:795> Session port before config file parse: 22
> x2go-DEBUG-../src/sshmasterconnection.cpp:805> Session port after config file parse: 22
> x2go-DEBUG-../src/sshmasterconnection.cpp:869> Session port before config file parse (part 2): 22
> x2go-DEBUG-../src/sshmasterconnection.cpp:879> Session port after config file parse (part 2): 22
> x2go-DEBUG-../src/sshmasterconnection.cpp:903> cserverAuth
> x2go-DEBUG-../src/sshmasterconnection.cpp:942> state: 1
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:1323> Trying to authenticate user with private key.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1368> Failed to get private key from "/home/yg/.ssh/id_ed25519"; trying to query passphrase.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1506> Authenticating with key: 0
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:685> User authentication OK.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1708> LOGIN CHECK:"LOGIN OK\r\n"
> x2go-DEBUG-../src/sshmasterconnection.cpp:1711> don't have interaction
> x2go-DEBUG-../src/sshmasterconnection.cpp:1744> LOOP FINISHED
> x2go-DEBUG-../src/sshmasterconnection.cpp:1748> No interaction needed, continue session
> x2go-DEBUG-../src/sshmasterconnection.cpp:700> Login Check - OK
> x2go-DEBUG-../src/onmainwindow.cpp:3105> SSH connection established.
> x2go-DEBUG-../src/onmainwindow.cpp:3538> Continue normal X2Go session
> x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "x2golistsessions"
> x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x555e9c41c690) Running masterCon->addChannelConnection(this, '"fa218939-238c-47a1-b842-e0b18aa88d7c"', '"bash -l -c 'echo \"X2GODATABEGIN:fa218939-238c-47a1-b842-e0b18aa88d7c\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:fa218939-238c-47a1-b842-e0b18a"');
> x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel:0x7fdf480abc60
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2200> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:fa218939-238c-47a1-b842-e0b18aa88d7c\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:fa218939-238c-47a1-b842-e0b18aa88d7c\";'"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2231> New exec channel created.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2009> EOF on channel 0x7fdf480abc60; SshProcess object: 0
> x2go-DEBUG-../src/sshmasterconnection.cpp:2250> EOF sent.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2252> Channel closed.
> x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:fa218939-238c-47a1-b842-e0b18aa88d7c\nX2GODATAEND:fa218939-238c-47a1-b842-e0b18aa88d7c\n"
> x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "" (0).
> x2go-DEBUG-../src/onmainwindow.cpp:4043> ""
> x2go-DEBUG-../src/onmainwindow.cpp:4726> Executing remote command: "X2GODPI=162 X2GO_XINERAMA=no x2gostartagent 1440x900 lan 16m-jpeg-9 unix-kde-depth_24 us auto 1 D KDE both"
> x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 1: "X2GODPI=162 X2GO_XINERAMA=no x2gostartagent 1440x900 lan 16m-jpeg-9 unix-kde-depth_24 us auto 1 D KDE both"
> x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x555e9c34e2e0) Running masterCon->addChannelConnection(this, '"84dba88a-1f94-4058-8309-c488a2320d21"', '"bash -l -c 'echo \"X2GODATABEGIN:84dba88a-1f94-4058-8309-c488a2320d21\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; X2GODPI=162 X2GO_XINERAMA=no x2gostartagent 1440x900 lan 16m-jpeg-"');
> x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
>Any idea?

> x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel:0x7fdf480ac620
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2200> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:84dba88a-1f94-4058-8309-c488a2320d21\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; X2GODPI=162 X2GO_XINERAMA=no x2gostartagent 1440x900 lan 16m-jpeg-9 unix-kde-depth_24 us auto 1 D KDE both; echo \"X2GODATAEND:84dba88a-1f94-4058-8309-c488a2320d21\";'"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2231> New exec channel created.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2009> EOF on channel 0x7fdf480ac620; SshProcess object: 1
> x2go-DEBUG-../src/sshmasterconnection.cpp:2250> EOF sent.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2252> Channel closed.
> x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:84dba88a-1f94-4058-8309-c488a2320d21\n50\n83c47010e6af1215ed7b7d31b7785e52\n524908\nyg-50-1701337804_stDKDE_dp24\n54400\n54401\n54402\nX2GODATAEND:84dba88a-1f94-4058-8309-c488a2320d21\n"
> x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "50\n83c47010e6af1215ed7b7d31b7785e52\n524908\nyg-50-1701337804_stDKDE_dp24\n54400\n54401\n54402\n" (1).
> x2go-DEBUG-../src/onmainwindow.cpp:5680> Agent output: "50\n83c47010e6af1215ed7b7d31b7785e52\n524908\nyg-50-1701337804_stDKDE_dp24\n54400\n54401\n54402\n"
> x2go-DEBUG-../src/sshprocess.cpp:387> Starting tunnel via SshProcess object 2: "localhost":54400 -> "localhost":55400
>
> RESUMING SESSION is KDRIVE:  false
> x2go-DEBUG-../src/onmainwindow.cpp:6427> "Starting NX proxy, command: nxproxy -S nx/nx,options=/home/yg/.x2go/S-yg-50-1701337804_stDKDE_dp24/options:50"
> x2go-DEBUG-../src/sshprocess.cpp:157> Direct tunnel: waiting for connections on "localhost":55400
> x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 3: "echo \"default-server=localhost:54401\" > \"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\";echo \"cookie-file=${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-cookie\" >> \"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\";echo \"autospawn=no\" >>\"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\""
> x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x555e9c334600) Running masterCon->addChannelConnection(this, '"8ebd3817-f70f-486d-bcf8-104635d84fc2"', '"bash -l -c 'echo \"X2GODATABEGIN:8ebd3817-f70f-486d-bcf8-104635d84fc2\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; echo \"default-server=localhost:54401\" > \"${HOME}/.x2go/C-yg-50-170"');
> x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel:0x7fdf480ac730
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2200> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:8ebd3817-f70f-486d-bcf8-104635d84fc2\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; echo \"default-server=localhost:54401\" > \"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\";echo \"cookie-file=${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-cookie\" >> \"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\";echo \"autospawn=no\" >>\"${HOME}/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-client.conf\"; echo \"X2GODATAEND:8ebd3817-f70f-486d-bcf8-104635d84fc2\";'"
>
>Any idea?
 x2go-DEBUG-../src/sshmasterconnection.cpp:2231> New exec channel created.
>
> x2go-DEBUG-../src/sshprocess.cpp:310> Copying file via SshProcess object 4: "/home/yg/.config/pulse/cookie" -> "$HOME/.x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-cookie"
> x2go-DEBUG-../src/sshprocess.cpp:387> Starting tunnel via SshProcess object 5: "localhost":54401 -> "127.0.0.1":4713
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:426> Requesting reverse tunnel from port 54401 to 4713
> x2go-DEBUG-../src/onmainwindow.cpp:6905> Proxy wrote on stderr: "\nNXPROXY - Version 3.5.99.27\n\nCopyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)\nCopyright (c) 2008-2017 Oleksandr Shneyder <[email-masked]>\nCopyright (c) 2014-2022 Ulrich Sibiller <[email-masked]>\nCopyright (c) 2014-2019 Mihai Moldovan <[email-masked]>\nCopyright (c) 2011-2022 Mike Gabriel <[email-masked]>\nCopyright (c) 2015-2016 Qindel Group (http://www.qindel.com)\n\nNXCOMP, NX protocol compression and NX extensions to this software\nare copyright of the aforementioned persons and companies.\n\nRedistribution and use of the present software is allowed according\nto terms specified in the file LICENSE.nxcomp which comes in the\nsource distribution.\n\nAll rights reserved.\n\nNOTE: This software has received contributions from various other\ncontributors, only the core maintainers and supporters are listed as\ncopyright holders. Please contact us, if you feel you should be listed\nas copyright holder, as well.\n\nNX protocol compression is derived from DXPC project.\n\nCopyright (c) 1995,1996 Brian Pane\nCopyright (c) 1996,1997 Zachary Vonler and Brian Pane\nCopyright (c) 1999 Kevin Vigor and Brian Pane\nCopyright (c) 2000,2003 Gian Filippo Pinzari and Brian Pane\n\nAll rights reserved.\n\nSee https://github.com/ArcticaProject/nx-libs for more information.\n\nInfo: Proxy running in server mode with pid '146470'.\nSession: Starting session at 'Thu Nov 30 09:50:05 2023'.\nInfo: Using errors file '/home/yg/.x2go/S-yg-50-1701337804_stDKDE_dp24/sessions'.\nInfo: Using stats file '/home/yg/.x2go/S-50/stats'.\nLoop: WARNING! Overriding auxiliary X11 port with new value '1'.\nWarning: Overriding auxiliary X11 port with new value '1'.\nInfo: Using abstract X11 socket in kernel namespace for accessing DISPLAY=:0.\nInfo: Connecting to remote host 'localhost:55400'.\nInfo: Connected to remote proxy on FD#5.\n"
> x2go-DEBUG-../src/sshmasterconnection.cpp:333> Forward port 54401 failed:"Global request tcpip-forward failed"
> x2go-DEBUG-../src/sshmasterconnection.cpp:1840> SSH Master Connection copy - dst path:".x2go/C-yg-50-1701337804_stDKDE_dp24" file:".pulse-cookie"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:1891> scp ok: "/home/yg/.config/pulse/cookie" -> "yg"@"berserk":".x2go/C-yg-50-1701337804_stDKDE_dp24/.pulse-cookie"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2053> EOF on channel 0x7fdf480ac730; SshProcess object: 3
> x2go-DEBUG-../src/sshmasterconnection.cpp:2250> EOF sent.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2252> Channel closed.
> x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:8ebd3817-f70f-486d-bcf8-104635d84fc2\nX2GODATAEND:8ebd3817-f70f-486d-bcf8-104635d84fc2\n"
> x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "" (3).
> x2go-DEBUG-../src/sshprocess.cpp:109> New TCP connection.
> x2go-DEBUG-../src/sshprocess.cpp:114> New socket: 14
> x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel:0x7fdf480ad080
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2129> Forwarding parameters: from remote ("localhost":54400) to local ("localhost":47482)
> x2go-DEBUG-../src/sshmasterconnection.cpp:2163> Temporary session port after config file parse: 54400
> x2go-DEBUG-../src/sshmasterconnection.cpp:2167> Temporary session host after config file parse: localhost
> x2go-DEBUG-../src/sshmasterconnection.cpp:2190> "ssh_channel_open_forward failed": "Channel opening failure: channel 48 error (1) open failed"
>
> x2go-DEBUG-../src/sshprocess.cpp:478> I/O error: "ssh_channel_open_forward failed."" - Channel opening failure: channel 48 error (1) open failed" (2).
> x2go-DEBUG-../src/sshmasterconnection.cpp:2075> "ssh_channel_write failed": "Remote channel is closed"
>
> x2go-DEBUG-../src/sshprocess.cpp:478> I/O error: "ssh_channel_write failed."" - Remote channel is closed" (2).
> x2go-DEBUG-../src/sshmasterconnection.cpp:2250> EOF sent.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2252> Channel closed.
> x2go-DEBUG-../src/onmainwindow.cpp:6905> Proxy wrote on stderr: "Loop: PANIC! The remote NX proxy closed the connection.\nError: The remote NX proxy closed the connection.\n"
> x2go-DEBUG-../src/onmainwindow.cpp:6905> Proxy wrote on stderr: "Loop: PANIC! Failure negotiating the session in stage '7'.\nError: Failure negotiating the session in stage '7'.\n"
> x2go-DEBUG-../src/onmainwindow.cpp:6905> Proxy wrote on stderr: "Loop: PANIC! Wrong version or invalid session authentication cookie.\nError: Wrong version or invalid session authentication cookie.\nSession: Terminating session at 'Thu Nov 30 09:50:05 2023'.\nSession: Session terminated at 'Thu Nov 30 09:50:05 2023'.\n"
> x2go-DEBUG-../src/onmainwindow.cpp:6905> Proxy wrote on stderr: "Info: Upcoming dialog:\n/-----------------------------------------------------------\nNX - 50:\nThe remote proxy closed the connection while negotiating\nthe session. This may be due to the wrong authentication\ncredentials passed to the server.\n\n\\-----------------------------------------------------------\n"
> x2go-DEBUG-../src/onmainwindow.cpp:6762> Deleting Proxy.
> x2go-DEBUG-../src/onmainwindow.cpp:6807> Waiting for proxy to exit.
> x2go-DEBUG-../src/onmainwindow.cpp:6831> Checking exit status.
> x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 6: "x2gocmdexitmessage yg-50-1701337804_stDKDE_dp24"
> x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x555e9c3996e0) Running masterCon->addChannelConnection(this, '"915e085d-de00-40d2-af9f-eb49c5dcd82c"', '"bash -l -c 'echo \"X2GODATABEGIN:915e085d-de00-40d2-af9f-eb49c5dcd82c\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2gocmdexitmessage yg-50-1701337804_stDKDE_dp24; echo \"X2GODATAEND"');
> x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
> x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
> x2go-DEBUG-../src/onmainwindow.cpp:6888> Finished proxy.
> x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel:0x7fdf480ad2f0
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2200> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:915e085d-de00-40d2-af9f-eb49c5dcd82c\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2gocmdexitmessage yg-50-1701337804_stDKDE_dp24; echo \"X2GODATAEND:915e085d-de00-40d2-af9f-eb49c5dcd82c\";'"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:2210> "ssh_channel_open_session failed": "Socket error: Success"
>
> x2go-DEBUG-../src/sshmasterconnection.cpp:1976> Connection to channel went wrong.

--
GPG fingerprint = 4ED9 EC45 AEFD A60E 7CE5  A3EC 519C 0845 AFDF 2C31
“𝔴𝔢 𝔞𝔩𝔩 𝔩𝔦𝔳𝔢 𝔦𝔫 𝔞 𝔠𝔶𝔟𝔢𝔯𝔭𝔲𝔫𝔨 𝔡𝔶𝔰𝔱𝔬𝔭𝔦𝔞 𝔪𝔦𝔫𝔲𝔰 𝔱𝔥𝔢 𝔤𝔬𝔬𝔡 𝔟𝔦𝔱” —  𝔉𝔬𝔵