X2Go Bug report logs - #644
x2goserver : The $SSH_CLIENT environment variable is not set

version graph

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

Reported by: Office NextITLevel GmbH <office@nextitlevel.de>

Date: Fri, 17 Oct 2014 15:30:02 UTC

Severity: normal

Tags: pending

Fixed in version 4.0.1.19

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 Oct 2014 15:26:23 +0000
From office@nextitlevel.de  Fri Oct 17 17:26:21 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from mail.nextitlevel.com (mail.nextitlevel.com [78.142.141.165])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id B37943D600
	for <submit@bugs.x2go.org>; Fri, 17 Oct 2014 17:26:21 +0200 (CEST)
Received: from VSRV05.nit.local (10.99.1.15) by vSRV05.nit.local (10.99.1.15)
 with Microsoft SMTP Server (TLS) id 15.0.620.29; Fri, 17 Oct 2014 17:24:49
 +0200
Received: from VSRV05.nit.local ([fe80::f591:2710:d3b0:a599]) by
 vSRV05.nit.local ([fe80::f591:2710:d3b0:a599%15]) with mapi id
 15.00.0620.020; Fri, 17 Oct 2014 17:24:49 +0200
From: Office NextITLevel GmbH <office@nextitlevel.de>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Subject: x2goserver : The $SSH_CLIENT environment variable is not set
Thread-Topic: x2goserver : The $SSH_CLIENT environment variable is not set
Thread-Index: Ac/qHhtdmahw1uqpTYGX7cOKGJHqCgAAELlg
Date: Fri, 17 Oct 2014 15:24:49 +0000
Message-ID: <0bb4b7c68f15486da44463d4e42d38c0@vSRV05.nit.local>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [88.69.6.144]
Content-Type: multipart/mixed;
	boundary="_002_0bb4b7c68f15486da44463d4e42d38c0vSRV05nitlocal_"
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Package: <x2goserver>
Version: <4.0.1.18-0x2go1+git20141006.949+wheezy.main.1>

$ uname -a
Linux n-ostack-test 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linuxlibc6:armhf          2.13-38+rpi2+de 
 x2goagent                             2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1

--

Dear X2go Team,

For some reason the SSH_CLIENT environment variable is not set by the ssh-connection.

I looks to me that a newer ssh server on debian does not set the SSH_CLIENT variable anymore.
This variable is needed by x2gostartagent script and later by the x2goserver.
I added manually the variable to the /usr/bin/x2goagent script by adding these lines:
set -- $SSH_CONNECTION
SSH_CLIENT="$1 $2 $4"
export SSH_CLIENT
---
But still the x2goserver did not start.  Here is the output from the client side (Raspberry PI):
$ x2goclient --session=lokal
ONMainWindow constructor

primary screen geometry:  QRect(0,0 3200x1080)
ONMainWindows constructor finished, home Directory is: "/home/fraroot"

read  3  sessions from config file
start new ssh connection to server: "192.168.1.6" : "22" krb:  false

ssh connection ok

continue normal x2go session

executing remote command:  "sh -c "export HOSTNAME && x2golistsessions""

"x2gostartagent 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 de pc105/de 1 D LXDE"

executing remote command:  "sh -c "x2gostartagent 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 de pc105/de 1 D LXDE""

Agent output: "The $SSH_CLIENT environment variable is not set. Aborting session startup.
"
Bus-Zugriffsfehler
------------

The new environment variable is $SSH_CONNECTION and the environment variable $SSH_CLIENT will be gone
in future ssh releases.

I did set the variable in /etc/profile and in /usr/bin/x2goagent, but it did not help.
Attached you find all the output and details about this environment.  

Thank you very much and have a nice day,
Franz Lückl

Mobil DE:                +49 152 3437 5620
Mobil AT:                +43 676 37 00 299
Mobiles Festnetz:    +49 69 3487 8985
Fax:                     +43 1 89 00 2999

mailto:franz@nextitlevel.de 
Internet Home Page:  http://www.nextitlevel.de


[x2goclient-error2.txt (text/plain, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 15:08:08 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.