Subject: x2goserver : The $SSH_CLIENT environment variable is not set

From: Office NextITLevel GmbH <[email-masked]>
Date: Fri, 17 Oct 2014 15:24:49 +0000

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:[email-masked] 
Internet Home Page:  http://www.nextitlevel.de

---

From: Heinrich Schuchardt <[email-masked]>
Date: Mon, 26 Jan 2015 19:46:02 +0100

Hello Franz,

In #628 you wrote
> But when I say
> # apt-get download x2goclient
> I get  x2goclient_3.99.2.1-5_armhf.deb
> And this version makes a lot of problems with an X2goserver 4.0.1.16.

It remains unclear in #644 if you are still trying to use client
3.99.2.1-5_armhf.deb.

Please, provide both for x2goserver and x2goclient the version, the
architecture, the Linux distribution, and the apt repository you are using.

Best regards

Heinrich Schuchardt