Dear All,
first of all: great software, we (a small educational organisation for trade union members) have been working with it
for years.
TL;DR: shared folders do not work, when I use the GUI to mount a share directory ~/media/disk/SHARE-NAME remains empty.
Our Setup:
* x2goserver on a computer behind a rounter with portforwarding and dyndns
* x2goclient on a computer behind another router
* both debian stable
The connection from x2goclient to x2goserver works (I mean: I get my remote desktop and work there), but when I want to
use/mount a shared folder, nothing happens. I mean: If I want to access a folder on the x2goclient via the x2go function
“shared folders” from the x2goserver, the directory ~/media/disk/SHARE-NAME remains empty.
When I trigger the release in the GUI of x2goclient, the logs say:
on x2goclient
-----------
Nov 06 00:00:02 x2go /usr/bin/x2gomountdirs[295124]: insertion of shared folder into session DB has been successful
Nov 06 00:00:02 x2go /usr/bin/x2gomountdirs[295124]: SSH key file has arrived: /home/serveruser/.x2go/ssh/key.cicFLi
Nov 06 00:00:02 x2go /usr/bin/x2gomountdirs[295124]: SSH host key has arrived: /home/serveruser/.x2go/ssh/key.cicFLi.ident
Nov 06 00:00:02 x2go /usr/bin/x2gomountdirs[295124]: executing: timeout 30 sshfs -o
modules=iconv,from_code=UTF-8,to_code=UTF-8 -o idmap=user,uid=`id -u`,gid=`id
-g`,default_permissions,ServerAliveInterval=300,IdentityFile=/home/serveruser/.x2go/ssh/key.cicFLi,UserKnownHostsFile=/home/serveruser/.x2go/ssh/key.cicFLi.ident
"clientuser"@127.0.0.1:"/home/clientuser/Desktop" "/tmp/.x2go-serveruser/media/disk/_home_clientuser_Desktop" -p 53200
Nov 06 00:00:03 x2go /usr/bin/x2gomountdirs[295124]: WARNING: mounting of /home/clientuser/Desktop failed
-----------
on x2goserver
-----------
Nov 06 00:00:02 kweezy sshd[244865]: error: kex_exchange_identification: Connection closed by remote host
Nov 06 00:00:02 kweezy sshd[244865]: Connection closed by 127.0.0.1 port 52856
Nov 06 00:00:03 kweezy sshd[244871]: Failed password for clientuser from 127.0.0.1 port 52872 ssh2
Nov 06 00:00:03 kweezy sshd[244871]: Failed password for clientuser from 127.0.0.1 port 52872 ssh2
Nov 06 00:00:03 kweezy sshd[244871]: Connection closed by authenticating user clientuser 127.0.0.1 port 52872 [preauth]
-----------
Terminal-Output of 'x2goclient --debug --libssh-debug' on x2goclient
-----------
x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f7ed4064930; SshProcess object: 4
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshmasterconnection.cpp:2165> EOF on channel 0x7f7ed40586c0; SshProcess object: 17
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout):
"X2GODATABEGIN:d396bc9c-fce4-420a-9c3a-b405fddfc022\ndirs:/home/clientuser/Desktop__REVERSESSH_PORT__53200\nssh
port:53200\nHost:127.0.0.1\nUser:clientuser\ninserted, timeout 30 sshfs -o modules=iconv,from_code=UTF-8,to_code=UTF-8
-o idmap=user,uid=`id -u`,gid=`id
-g`,default_permissions,ServerAliveInterval=300,IdentityFile=/home/serveruser/.x2go/ssh/key.cicFLi,UserKnownHostsFile=/home/serveruser/.x2go/ssh/key.cicFLi.ident
\"clientuser\"@127.0.0.1:\"/home/clientuser/Desktop\" \"/tmp/.x2go-serveruser/media/disk/_home_clientuser_Desktop\" -p
53200\nX2GODATAEND:d396bc9c-fce4-420a-9c3a-b405fddfc022\n"
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "dirs:/home/clientuser/Desktop__REVERSESSH_PORT__53200\nssh
port:53200\nHost:127.0.0.1\nUser:clientuser\ninserted, timeout 30 sshfs -o modules=iconv,from_code=UTF-8,to_code=UTF-8
-o idmap=user,uid=`id -u`,gid=`id
-g`,default_permissions,ServerAliveInterval=300,IdentityFile=/home/serveruser/.x2go/ssh/key.cicFLi,UserKnownHostsFile=/home/serveruser/.x2go/ssh/key.cicFLi.ident
\"clientuser\"@127.0.0.1:\"/home/clientuser/Desktop\" \"/tmp/.x2go-serveruser/media/disk/_home_clientuser_Desktop\" -p
53200\n" (17).
x2go-DEBUG-../src/onmainwindow.cpp:8895> Post-cleanup for startX2goMount triggered.
x2go-DEBUG-../src/onmainwindow.cpp:8920> Deactivating public key from "/home/clientuser/.x2go/ssh/gen/key.cicFLi.pub" again.
-----------
I then tried to reach the client from the x2goserver via SSH through the SSH tunnel that was set up:
-----------
serveruser@x2goserver:~$ ssh clientuser(a)127.0.0.1 -p 53200 -i /home/serveruser/.x2go/ssh/key.cicFLi
Warning: Identity file /home/serveruser/.x2go/ssh/key.WEIIYY not accessible: No such file or directory.
clientuser(a)127.0.0.1's password:
-----------
This generates a message in the x2goclient log -- so the tunnel back to the client has been set up, but the temporary
SSH key is no longer available. A login with the password of clientuser is not possible.
x2go's sshd on x2goclient is running:
-----------
clientuser@x2goclient:~$ px aux | grep sshd
clientuser 237626 0.0 0.0 15680 9496 pts/6 S+ Nov05 0:00 sshd: /usr/sbin/sshd -f
/home/clientuser/.x2go/etc/sshd_config -h /home/clientuser/.x2go/etc/ssh_host_rsa_key -D -p 7022 [listener] 0 of 10-100
startups
-----------
The specific sshd_config looks like this:
-----------
StrictModes no
UsePrivilegeSeparation no
PidFile "/home/clientuser/.x2go/var/sshd.pid"
AuthorizedKeysFile "/home/clientuser/.x2go/.ssh/authorized_keys"
Subsystem sftp /usr/lib/openssh/sftp-server
-----------
Any idea what I could try next?
greets
michel