X2Go Bug report logs - #922
Avoiding X2GO Servers all using the same SSH_PORT - what conflicts when try to connect to different servers from one windows terminal (multiple sessions of x2go client)

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Robert Nowotny <rnowotny@rotek.at>

Date: Mon, 17 Aug 2015 14:05:02 UTC

Severity: normal

Tags: pending

Found in version 4.0.1.19

Fixed in version 4.0.1.20

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 17 Aug 2015 14:00:10 +0000
From rnowotny@rotek.at  Mon Aug 17 16:00:08 2015
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,HTML_FONT_FACE_BAD,
	HTML_MESSAGE,URIBL_BLOCKED autolearn=no version=3.3.2
X-Greylist: delayed 406 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Mon, 17 Aug 2015 16:00:08 CEST
Received: from mail.rotek.at (mail.rotek.at [88.116.105.147])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 694BE5DA7E
	for <submit@bugs.x2go.org>; Mon, 17 Aug 2015 16:00:08 +0200 (CEST)
Received: from vm-imap.rotek.at (vm-imap [192.168.168.15])
	by mail.rotek.at (Postfix) with ESMTP id 02DDDC4137E;
	Mon, 17 Aug 2015 15:53:21 +0200 (CEST)
Received: from [192.168.168.104] (unknown [192.168.168.104])
	by vm-imap.rotek.at (Postfix) with ESMTP id BD4222B002A6;
	Mon, 17 Aug 2015 15:53:21 +0200 (CEST)
To: git-admin@x2go.org, submit@bugs.x2go.org
From: Robert Nowotny <rnowotny@rotek.at>
Subject: Avoiding X2GO Servers all using the same SSH_PORT - what conflicts
 when try to connect to different servers from one windows terminal (multiple
 sessions of x2go client)
Message-ID: <55D1E751.1000407@rotek.at>
Date: Mon, 17 Aug 2015 15:53:21 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------090805050304080904030508"
[Message part 1 (text/plain, inline)]
Package: x2goagent
Version: 3.5.0.32


As discussed with IONIC, there is a problem when You try to connect to 
different servers from Windows at the same time, using multiple 
instances of x2go client.
The reason is, that the x2go servers are all using the same SSH_Port. 
That should not be a problem from my point of view, so that behaviour 
should be further investigated.

The problem was reported already a very long time ago, but still exists 
: https://www.mail-archive.com/x2go-user@lists.berlios.de/msg00547.html

In the meantime, here a small patch for x2gostartagent script:
That patch uses a different SSH_PORT for each Server, therefore try to 
avoid conflicts.

There are two methods implemented :

method one, suitable for Class "C" Networks, with no possible conflicts. 
The SSH Port is dependent on the last octet of the servers host adress.
method two, with randomized ports, what may lead to conflicts from case 
to case, but can handle networks were servers might have the same last 
octet of the host adress.

However, that patch enables to have multiple instances of x2goclients 
running on one windows machine, against different hosts.

please find attached the IRC conversation log with Ionic, as well as the 
patched script for x2gostartagent

I hove it can be committed, I am getting tired to patch my hosts on 
every x2go server update ;-)

yours sincerely

Robert Nowotny
Rotek GmbH

[Message part 2 (text/html, inline)]
[irclog.txt (text/plain, attachment)]
[x2gostartagent (text/plain, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 17:02:05 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.