x2gomountdirs fails -> shared folders in x2go are not mounted

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
IlikeBörek
Posts: 9
Joined: 2017-09-29 20:42

x2gomountdirs fails -> shared folders in x2go are not mounted

#1 Post by IlikeBörek »

Hello,

setup is the following
  • x2goserver on a computer behind a rounter with portforwarding and dyndns
  • x2goclient on a computer behind another router
The connection from x2goclient to x2goserver works (I mean: I get my remote desktop and can 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

Code: Select all

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

Code: Select all

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

Code: Select all

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:

Code: Select all

serveruser@x2goserver:~$ ssh clientuser@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@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:

Code: Select all

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:

Code: Select all

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
An internet search reveals that there used to be a bug in x2gomountdirs in a five year old version of x2go, but the x2go at Bookworm is much newer.

On the x2go mailing list I will probably be told to use the latest version of x2go, but I would like to stick with the version in the package sources.

Hence the question: Does anyone have any idea what else I could try?

Post Reply