<div>Hi,<br></div><div><br></div><div>I did some refactoring in the sshmasterconnection.cpp file. I think it can definitely use some clean-up and further splitting functions and even into multiple files eventually.<br></div><div>I cloned the master branch of <a href="http://code.x2go.org/x2goclient">code.x2go.org/x2goclient</a> repo.<br></div><div><br></div><div>The changes I applied are in the attachment of this mail (a git patch file). I think closing previous sessions and connection solved my strange SSH connection is resulting into Socket error: No such file or directory".<br></div><div>Although X2Go client is calling <a rel="nofollow" title="https://api.libssh.org/master/index.html" target="_blank" href="https://api.libssh.org/master/index.html">libssh calls</a> (libssh version currently in use runtime on my host is: 0.7.0).<br></div><div>For some reason this vague error message popped-up by libssh, properly a result of previous session being created and not correctly closed. And/or not closed in the right order (/missing API calls), like a good example:<br></div><div><br></div><div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color:rgb(220, 220, 170)">ssh_channel_send_eof</span><span style="color:rgb(212, 212, 212)">(channel);</span><br></div><div><span style="color:rgb(220, 220, 170)">ssh_channel_close</span><span style="color:rgb(212, 212, 212)">(channel);</span><br></div><div><span style="color:rgb(220, 220, 170)">ssh_channel_free</span><span style="color:rgb(212, 212, 212)">(channel);</span><br></div></div><div><br></div><div>And I created yet again a new YT video showing my result: <br></div><div><a href="https://youtu.be/vmASLJq0CKM">https://youtu.be/vmASLJq0CKM</a><br></div><div>(including some brief explanation what I did so far, I also ran an formatted on the code, because it was very very hard to read with all the wrong indents)<br></div><div><br></div><div>I also made another video showing yet <i>another</i> bug I found regarding the SSH tunneling (during some heavy testing), the only solution was to restart the whole docker image:<br></div><div><a href="https://youtu.be/xEpIyo84fWc">https://youtu.be/xEpIyo84fWc</a> (I think this issue is <b>un</b>related, but maybe wise to take serious as well)<br></div><div><br></div><div>Again see attachment for the patch (branched from master).<br></div><div><br></div><div>Regards,<br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>Melroy van den Berg<br></div><div><br></div></div></div><div><br></div>