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 protected]
Internet Home Page: http://www.nextitlevel.de
$ uname -a
Linux n-ostack-test 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
$ dpkg -l | grep -i ssl
ii libcurl3:amd64 7.26.0-1+wheezy10
amd64 easy-to-use client-side URL transfer library (OpenSSL
flavour)
ii libflac8:amd64 1.2.1-6
amd64 Free Lossless Audio Codec - runtime C library
ii libio-socket-ssl-perl 1.76-2
all Perl module implementing object oriented interface to
SSL sockets
ii libnet-ssleay-perl 1.48-1+b1
amd64 Perl module for Secure Sockets Layer (SSL)
ii libssl1.0.0:amd64 1.0.1e-2+deb7u12
amd64 SSL shared libraries
ii libwavpack1:amd64 4.60.1-3
amd64 audio codec (lossy and lossless) - library
ii openssl 1.0.1e-2+deb7u12
amd64 Secure Socket Layer (SSL) binary and related
cryptographic tools
ii python-m2crypto 0.21.1-2
amd64 a crypto and SSL toolkit for Python
ii ssl-cert 1.0.32
all simple debconf wrapper for OpenSSL
$ dpkg -l | grep -i x2go
ii cups-x2go
3.0.1.0-0x2go1+git20140509.80+wheezy.main.1 all Virtual X2Go
printer for CUPS
ii libnx-x11
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 nx-X11
ii libssh-4:amd64 0.5.4-2~deb7+x2go2
amd64 tiny C SSH library
ii libxcomp3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX X compression
library
ii libxcompext3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX X11 protocol
compression extensions library
ii libxcompshad3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX shadowing
library
ii nxagent
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX agent
ii nxproxy
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX proxy
ii x2go-keyring 2012.07.23+wheezy~main~17~build1
all GnuPG keys of all X2Go developers and the X2Go archive
ii x2goagent
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 all X2Go agent
rc x2gobroker-agent
0.0.2.3-0~x2go1+wheezy~main~505~build1 amd64 X2Go http(s) based
session broker (common files)
ii x2goclient
4.0.2.1-0x2go1+git20140823.626+wheezy.main.1 amd64 X2Go Client
application (Qt4)
ii x2golxdebindings
1.0.2.2-0x2go1+git20140403.58+wheezy.main.1 all LXDE bindings for
X2Go
ii x2goserver
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 amd64 X2Go server daemon
scripts
ii x2goserver-extensions
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (extensions)
ii x2goserver-printing
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (printing)
ii x2goserver-xsession
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (Xsession runner)
---------
# Start x2goclient from Raspberry PI
$ x2goclient --session=lokal
ONMainWindow constructor
primary screen geometry: QRect(0,0 1920x1080)
ONMainWindows constructor finished, home Directory is: "/home/fraroot"
read 2 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
-----------------------------------
edited /etc/profile on x2goserver and added
# export SSH_CLIENT=${SSH_CLIENT}
set -- $SSH_CONNECTION
SSH_CLIENT="$1 $2 $4"
export SSH_CLIENT
--
$ env | grep SSH
SSH_CLIENT=10.183.78.109 33641 22
SSH_TTY=/dev/pts/0
SSH_CONNECTION=10.183.78.109 33641 10.200.1.58 22
-------------------
Second server: Here it works
$ uname -a
Linux v296611 3.2.41-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 x86_64
GNU/Linux
$ dpkg -l | grep -i ssh
ii libssh-4:amd64 0.5.4-2~deb7+x2go2
amd64 tiny C SSH library
ii libssh2-1:amd64 1.4.2-1.1
amd64 SSH2 client-side library
ii libssh2-1:i386 1.4.2-1.1
i386 SSH2 client-side library
ii openssh-blacklist 0.4.1+nmu1
all list of default blacklisted OpenSSH RSA and DSA keys
ii openssh-client 1:6.0p1-4+deb7u2
amd64 secure shell (SSH) client, for secure access to remote
machines
ii openssh-server 1:6.0p1-4+deb7u2
amd64 secure shell (SSH) server, for secure access from remote
machines
ii ssh 1:6.0p1-4+deb7u2
all secure shell client and server (metapackage)
ii sshfs 2.4-1
amd64 filesystem client based on SSH File Transfer Protocol
ii sshterm 0.2.2-10.13062618
all Plesk-packaged version of SSH Java applet
$ dpkg -l | grep -i x2go
ii cups-x2go
3.0.1.0-0x2go1+git20140509.80+wheezy.main.1 all Virtual X2Go
printer for CUPS
ii libnx-x11
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 nx-X11
ii libssh-4:amd64 0.5.4-2~deb7+x2go2
amd64 tiny C SSH library
ii libxcomp3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX X compression
library
ii libxcompext3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX X11 protocol
compression extensions library
ii libxcompshad3
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX shadowing
library
ii nxagent
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX agent
ii nxproxy
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 amd64 NX proxy
ii x2go-keyring 2012.07.23+wheezy~main~17~build1
all GnuPG keys of all X2Go developers and the X2Go archive
ii x2goagent
2:3.5.0.27-0x2go1+git20140701.511+wheezy.main.1 all X2Go agent
ii x2goclient
4.0.2.1-0x2go1+git20140823.626+wheezy.main.1 amd64 X2Go Client
application (Qt4)
ii x2golxdebindings
1.0.2.2-0x2go1+git20140403.58+wheezy.main.1 all LXDE bindings for
X2Go
ii x2goserver
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 amd64 X2Go server daemon
scripts
ii x2goserver-extensions
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (extensions)
ii x2goserver-printing
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (printing)
ii x2goserver-xsession
4.0.1.18-0x2go1+git20141006.949+wheezy.main.1 all X2Go server daemon
scripts (Xsession runner)
$ x2goclient --session=remote
ONMainWindow constructor
primary screen geometry: QRect(0,0 1920x1080)
ONMainWindows constructor finished, home Directory is: "/home/fraroot"
read 2 sessions from config file
start new ssh connection to server: "srv01.niuco.net" : "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: "58
63fa63edeb220c9561c21c1674e56ac3
12127
demo1-58-1413299384_stDLXDE_dp24
30025
30026
30027
"
starting nxproxy with: "nxproxy -S
nx/nx,options=/home/fraroot/.x2go/S-demo1-58-1413299384_stDLXDE_dp24/options:58"
executing remote command: "sh -c "echo "default-server=localhost:30026">
~/.x2go/C-demo1-58-1413299384_stDLXDE_dp24/.pulse-client.conf;echo
"cookie-file=.x2go/C-demo1-58-1413299384_stDLXDE_dp24/.pulse-cookie">>
~/.x2go/C-demo1-58-1413299384_stDLXDE_dp24/.pulse-client.conf""
"
NXPROXY - Version 3.5.0
Copyright (C) 2001, 2010 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '3999'.
Session: Starting session at 'Tue Oct 14 17:09:46 2014'.
Info: Connecting to remote host 'localhost:31025'.
Info: Connection to remote proxy 'localhost:31025' established.
"
search proxy win: "X2GO-demo1-58-1413299384_stDLXDE_dp24"
search proxy win: "X2GO-demo1-58-1413299384_stDLXDE_dp24"
"Info: Connection with remote proxy completed.
Warning: Unrecognized session type 'unix-kde-depth_24'. Assuming agent session.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using cache parameters 4/4096KB/8192KB/8192KB.
Info: Using pack method '16m-jpeg-9' with session 'unix-kde-depth_24'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: No suitable cache file found.
Info: Forwarding X11 connections to display ':0.0'.
Session: Session started at 'Tue Oct 14 17:09:48 2014'.
Info: Established X server connection.
Info: Using shared memory parameters 0/0K.
"
Generating public/private rsa key pair.
Your identification has been saved in /home/fraroot/.x2go/ssh/gen/key.nn3995.
Your public key has been saved in /home/fraroot/.x2go/ssh/gen/key.nn3995.pub.
The key fingerprint is:
1c:da:3b:89:c0:a6:9f:57:b4:bd:9f:6b:dc:3d:50:4e fraroot@niuco-f5525
The key's randomart image is:
+--[ RSA 1024]----+
| |
| |
| . |
| . +.. E |
| + ..So + |
| o . .oo. . . |
| . ..+ o ... |
| . .. .. o....|
| o. o+. .|
+-----------------+
key created on: "/home/fraroot/.x2go/ssh/gen/key.nn3995"
starting fs tunnel for: "demo1-58-1413299384_stDLXDE_dp24"
fs port: "30027"
executing remote command: "sh -c
"PULSE_CLIENTCONFIG=~/.x2go/C-demo1-58-1413299384_stDLXDE_dp24/.pulse-client.conf
setsid x2goruncommand 58 12127 demo1-58-1413299384_stDLXDE_dp24 30026
startlxde nosnd D 1> /dev/null 2>/dev/null & exit""
search proxy win: "X2GO-demo1-58-1413299384_stDLXDE_dp24"
exported key "/home/fraroot/.x2go/ssh/gen/key.nn3995"
key removed
executing remote command: "sh -c "export HOSTNAME && x2gomountdirs dir
demo1-58-1413299384_stDLXDE_dp24 fraroot ~demo1/.x2go/ssh/key.nn3995
/home/fraroot/.x2go/S-demo1-58-1413299384_stDLXDE_dp24/spool__PRINT_SPOOL___REVERSESSH_PORT__30027""
search proxy win: "X2GO-demo1-58-1413299384_stDLXDE_dp24"
proxy win found: 44040209
"Session: Terminating session at 'Tue Oct 14 17:12:42 2014'.
Session: Session terminated at 'Tue Oct 14 17:12:42 2014'.
"
deleting proxy
nxproxy not running
proxy deleted
check command message
executing remote command: "sh -c "x2gocmdexitmessage
demo1-58-1413299384_stDLXDE_dp24""
saving settings
done
waiting sshConnection to finish
sshConnection is closed
----
Client Raspberry PI
$ dpkg -l | grep -i x2go
ii x2go-keyring 2012.07.23+wheezy~main~17~build1
all GnuPG keys of all X2Go developers and the X2Go archive
ii x2goclient 3.99.2.1-5
armhf X2Go Client application (Qt4)
There is no newer version for the Raspberry PI.
_______________________________________________
x2go-dev mailing list
[email protected]
http://lists.x2go.org/listinfo/x2go-dev