hi,

I installed easily x2goserver and x2gobroker on two servers (OS Centos 7, x86_64).

I tested it last week. It worked really well with a Linux x2goclient (fedora 31, x86_64)using :

    - a connection to the server through an ssh proxy with password.

    - a connection using a session from a x2gobroker server with the same login/password/server.

I tried the same tests with a Windows 10 pro x2goclient.

The first test, a connection to the server through an ssh proxy works fine.

But, when my x2goclient use the session from the x2gobroker (same x2goserver/use/password), the connection failed.

My client write the following error: failed to resolve the hostname ... (x2gserver)

In fact, the x2goclient seems to try a direct ssh connection to the x2goserver without using the ssh gateway offers by my x2gobroker server. This case is fine with a Linux client.

Is there a problem in my network windows configuration ?

Client version is one of the last windows release (4.1.2..). I tried several versions.

X2goserver and X2gobroker versions are the last from the official x2go repositories for debian/centos (broker 0.0.4.1-1 , server4.1.0.3)

My command to excute x2cgoclient in windows 10 powershell

"C:\Program Files (x86)\x2goclient\x2goclient.debug.exe" --broker-url="ssh://x2go-gateway.domain.fr:/usr/bin/x2gobroker --mode SSH" --add-to-known-hosts --portable --debug --libssh-debug   --libssh-packetlog   --disable-pulse  --link=adsl

X2go-gateway.domain.fr is an x2gobroker server, but also a ssh gateway to acces x2goservers on private network.

You will find debug messages from the file attachment.

I may just be too tired to see where is the error...

Any advice, help are welcome.




x2goclient.debug.exe : x2go-INFO-1> "Starting X2Go Client 4.1.2.2..."
At line:1 char:1
+ & 'C:\Program Files (x86)\x2goclient\x2goclient.debug.exe' --broker-u ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (x2go-INFO-1> "S...ent 
4.1.2.2...":String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
x2go-WARNING-1> English language requested, not loading translator.

x2go-WARNING-1> English language requested, not loading translator.

x2go-DEBUG-../src/onmainwindow.cpp:1246> Removing apps from tray

x2go-DEBUG-../src/onmainwindow.cpp:1214> Plugging apps in tray.

x2go-DEBUG-../src/onmainwindow.cpp:10779> Getting X.Org Server settings.

x2go-DEBUG-../src/httpbrokerclient.cpp:60> host:"x2go-gateway.broker......."

x2go-DEBUG-../src/httpbrokerclient.cpp:61> port:22
x2go-DEBUG-../src/httpbrokerclient.cpp:62> uname:""
x2go-DEBUG-../src/httpbrokerclient.cpp:63> path:"/usr/bin/x2gobroker --mode SSH"

x2go-INFO-3> "Started X2Go Client."

x2go-DEBUG-../src/onmainwindow.cpp:575> "$HOME=C:/Users/xxxxxxx"

x2go-DEBUG-../src/onmainwindow.cpp:13290> libssh not initialized yet. 
Initializing.

x2go-DEBUG-../src/onmainwindow.cpp:7110> Not starting PulseAudio

x2go-DEBUG-../src/onmainwindow.cpp:10682> Starting helper servers for Windows 
...

x2go-DEBUG-../src/onmainwindow.cpp:10849> 
"/cygdrive/C/Users/user_test/.x2go/var" cygwin var path

x2go-DEBUG-../src/onmainwindow.cpp:10937> 
"C:/Users/user_test/.x2go/etc/sshd_config created."

x2go-DEBUG-../src/onmainwindow.cpp:10344> Resolved localhost.

x2go-DEBUG-../src/onmainwindow.cpp:10366> Port is free: 7022

x2go-DEBUG-../src/onmainwindow.cpp:11288> Logging cygwin sshd to: 
"C:/Users/user_test/.x2go/sshLogs/qHp796.log"

x2go-DEBUG-../src/onmainwindow.cpp:11302> Creating desktop: x2go_user_test

x2go-DEBUG-../src/onmainwindow.cpp:10344> Resolved localhost.

x2go-DEBUG-../src/onmainwindow.cpp:10372> Port already in use: 7022

x2go-DEBUG-../src/onmainwindow.cpp:10344> Resolved localhost.

x2go-DEBUG-../src/onmainwindow.cpp:10372> Port already in use: 7022

x2go-DEBUG-../src/onmainwindow.cpp:11399> User mode OpenSSH server started 
successfully.

x2go-DEBUG-../src/onmainwindow.cpp:3310> Starting broker request.

x2go-DEBUG-../src/httpbrokerclient.cpp:286> Called getUserSessions: brokeruser: 
"user_ldap" authid: ""

x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host 
"x2go-gateway.domain.fr"; port 22; user "user_ldap"; useproxy false; 
proxyserver ""; proxyport 0
x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without 
Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance 
SshMasterConnection(0x3bbae78)  created. 

x2go-DEBUG-../src/sshmasterconnection.cpp:495> SshMasterConnection, instance 
SshMasterConnection(0x3bbae78)  entering thread. 

x2go-DEBUG-../src/sshmasterconnection.cpp:575> Setting SSH directory to 
C:/Users/user_test/ssh
x2go-DEBUG-../src/sshmasterconnection.cpp:797> Session port before config file 
parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:807> Session port after config file 
parse: 22

x2go-DEBUG-../src/sshmasterconnection.cpp:870> Session port before config file 
parse (part 2): 22

x2go-DEBUG-../src/sshmasterconnection.cpp:880> Session port after config file 
parse (part 2): 22

x2go-DEBUG-../src/sshmasterconnection.cpp:904> cserverAuth

x2go-DEBUG-../src/sshmasterconnection.cpp:943> state: 1


x2go-DEBUG-../src/sshmasterconnection.cpp:676> Setting SSH directory to 
C:/Users/user_test/ssh

x2go-DEBUG-../src/sshmasterconnection.cpp:1218> Trying password mechanism if 
available.


x2go-DEBUG-../src/sshmasterconnection.cpp:1222> Password mechanism available. 
Continuing.


x2go-DEBUG-../src/sshmasterconnection.cpp:687> User authentication OK.

x2go-DEBUG-../src/sshmasterconnection.cpp:1708> LOGIN CHECK:"LOGIN OK
"

x2go-DEBUG-../src/sshmasterconnection.cpp:1711> don't have interaction
x2go-DEBUG-../src/sshmasterconnection.cpp:1744> LOOP FINISHED
x2go-DEBUG-../src/sshmasterconnection.cpp:1748> No interaction needed, continue 
session

x2go-DEBUG-../src/sshmasterconnection.cpp:702> Login Check - OK

x2go-DEBUG-../src/httpbrokerclient.cpp:286> Called getUserSessions: brokeruser: 
"user_ldap" authid: ""

x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess 
object 0: "/usr/bin/x2gobroker --mode SSH --user user_ldap --task listsessions"

x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x3eea6a8)  Running 
masterCon->addChannelConnection(this, ' "b70276bd-e914-4fa7-8f0c-3dde291f5d66" 
', ' "bash -l -c 'echo 
"X2GODATABEGIN:b70276bd-e914-4fa7-8f0c-3dde291f5d66"; export 
PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; /usr/bin/x2gobroker 
--mode SSH --user user_ldap --task 
lists" '); 

x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection 
MUTEX.

x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection 
object to channelConnections.

x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel 
connection MUTEX.

x2go-DEBUG-../src/sshmasterconnection.cpp:1977> Creating new channel.


x2go-DEBUG-../src/sshmasterconnection.cpp:1990> New channel:0x3bbd290

x2go-DEBUG-../src/sshmasterconnection.cpp:2065> Executing remote: "bash -l -c 
'echo "X2GODATABEGIN:b70276bd-e914-4fa7-8f0c-3dde291f5d66"; export 
PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; /usr/bin/x2gobroker 
--mode SSH --user user_ldap --task listsessions; echo 
"X2GODATAEND:b70276bd-e914-4fa7-8f0c-3dde291f5d66";'"


x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.


x2go-DEBUG-../src/sshmasterconnection.cpp:2165> EOF on channel 0x3bbd290; 
SshProcess object: 0

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:b70276bd-e914-4fa7-8f0c-3dde291f5d66
AUTHID:d73218e3-8190-49c6-a134-4a5977a68463
Access granted
START_USER_SESSIONS

[s1-node104-xfce]
name=xfce - s1-node104
host=s1-node104.interne.domain.fr
command=XFCE
usebrokerpass=true
defsndport=1
useiconv=0
iconvfrom=UTF-8
height=1024
export=
quality=9
fullscreen=0
layout=
useexports=1
width=1200
speed=2
soundsystem=pulse
print=0
type=auto
sndport=4713
xinerama=1
variant=
usekbd=1
fstunnel=1
applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE
multidisp=0
sshproxyport=22
sound=0
rootless=0
iconvto=UTF-8
soundtunnel=1
dpi=96
sshport=22
setdpi=0
pack=16m-jpeg
directrdp=0
user=user_ldap

..........

END_USER_SESSIONS

X2GODATAEND:b70276bd-e914-4fa7-8f0c-3dde291f5d66
"

x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - 
"AUTHID:d73218e3-8190-49c6-a134-4a5977a68463
Access granted
START_USER_SESSIONS

[s1-node104-xfce]
name=xfce - s1-node104
host=s1-node104.interne.domain.fr
command=XFCE
usebrokerpass=true
defsndport=1
useiconv=0
iconvfrom=UTF-8
height=1024
export=
quality=9
fullscreen=0
layout=
useexports=1
width=1200
speed=2
soundsystem=pulse
print=0
type=auto
sndport=4713
xinerama=1
variant=
usekbd=1
fstunnel=1
applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE
multidisp=0
sshproxyport=22
sound=0
rootless=0
iconvto=UTF-8
soundtunnel=1
dpi=96
sshport=22
setdpi=0
pack=16m-jpeg
directrdp=0
user=user_ldap


END_USER_SESSIONS

" (0).

x2go-DEBUG-../src/httpbrokerclient.cpp:543> Called checkAccess - answer was: 
"AUTHID:d73218e3-8190-49c6-a134-4a5977a68463
Access granted
START_USER_SESSIONS

[s1-node104-xfce]
name=xfce - s1-node104
host=s1-node104.interne.domain.fr
command=XFCE
usebrokerpass=true
defsndport=1
useiconv=0
iconvfrom=UTF-8
height=1024
export=
quality=9
fullscreen=0
layout=
useexports=1
width=1200
speed=2
soundsystem=pulse
print=0
type=auto
sndport=4713
xinerama=1
variant=
usekbd=1
fstunnel=1
applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE
multidisp=0
sshproxyport=22
sound=0
rootless=0
iconvto=UTF-8
soundtunnel=1
dpi=96
sshport=22
setdpi=0
pack=16m-jpeg
directrdp=0
user=user_ldap

END_USER_SESSIONS

"

x2go-DEBUG-../src/httpbrokerclient.cpp:518> Inifile content: 
"AUTHID:d73218e3-8190-49c6-a134-4a5977a68463
Access granted
START_USER_SESSIONS

[s1-node104-xfce]
name=xfce - s1-node104
host=s1-node104.interne.domain.fr
command=XFCE
usebrokerpass=true
defsndport=1
useiconv=0
iconvfrom=UTF-8
height=1024
export=
quality=9
fullscreen=0
layout=
useexports=1
width=1200
speed=2
soundsystem=pulse
print=0
type=auto
sndport=4713
xinerama=1
variant=
usekbd=1
fstunnel=1
applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE
multidisp=0
sshproxyport=22
sound=0
rootless=0
iconvto=UTF-8
soundtunnel=1
dpi=96
sshport=22
setdpi=0
pack=16m-jpeg
directrdp=0
user=user_ldap

END_USER_SESSIONS

"


x2go-DEBUG-../src/httpbrokerclient.cpp:536> no client config from broker

x2go-DEBUG-../src/onmainwindow.cpp:2266> Reading 15 sessions from config file.

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/onmainwindow.cpp:2752> Creating QPixmap with session icon: 
'":/img/icons/128x128/x2gosession.png"'.

x2go-DEBUG-../src/httpbrokerclient.cpp:323> Called selectUserSession for 
session "s1-node104-xfce", loginName "user_ldap"

x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess 
object 1: "/usr/bin/x2gobroker --mode SSH --user user_ldap --task selectsession 
--sid 
"s1-node104-xfce" --authid d73218e3-8190-49c6-a134-4a5977a68463 --login 
user_ldap"

x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x4172e78)  Running 
masterCon->addChannelConnection(this, ' "78ea973e-0cff-4a2e-9569-33e4204f8c16" 
', ' "bash -l -c 'echo 
"X2GODATABEGIN:78ea973e-0cff-4a2e-9569-33e4204f8c16"; export 
PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; /usr/bin/x2gobroker 
--mode SSH --user user_ldap --task 
selec" '); 

x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection 
MUTEX.

x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection 
object to channelConnections.

x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel 
connection MUTEX.

x2go-DEBUG-../src/sshmasterconnection.cpp:1977> Creating new channel.


x2go-DEBUG-../src/sshmasterconnection.cpp:1990> New channel:0x41ac718

x2go-DEBUG-../src/sshmasterconnection.cpp:2065> Executing remote: "bash -l -c 
'echo "X2GODATABEGIN:78ea973e-0cff-4a2e-9569-33e4204f8c16"; export 
PATH="/usr/local/bin:/usr/bin:/bin";export TERM="dumb"; /usr/bin/x2gobroker 
--mode SSH --user user_ldap --task selectsession --sid "s1-node104-xfce" 
--authid 
d73218e3-8190-49c6-a134-4a5977a68463 --login user_ldap; echo 
"X2GODATAEND:78ea973e-0cff-4a2e-9569-33e4204f8c16";'"


x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.


x2go-DEBUG-../src/sshmasterconnection.cpp:2165> EOF on channel 0x41ac718; 
SshProcess object: 1

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:78ea973e-0cff-4a2e-9569-33e4204f8c16
AUTHID:8d905df9-2b01-4893-9716-ac826d8ea268
Access granted
SERVER:s1-node104.interne.domain.fr:22

X2GODATAEND:78ea973e-0cff-4a2e-9569-33e4204f8c16
"

x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - 
"AUTHID:8d905df9-2b01-4893-9716-ac826d8ea268
Access granted
SERVER:s1-node104.interne.domain.fr:22

" (1).

x2go-DEBUG-../src/httpbrokerclient.cpp:543> Called checkAccess - answer was: 
"AUTHID:8d905df9-2b01-4893-9716-ac826d8ea268
Access granted
SERVER:s1-node104.interne.domain.fr:22

"

x2go-DEBUG-../src/httpbrokerclient.cpp:625> parsing 
"AUTHID:8d905df9-2b01-4893-9716-ac826d8ea268
Access granted
SERVER:s1-node104.interne.domain.fr:22

"

x2go-DEBUG-../src/httpbrokerclient.cpp:684> Starting parser.

x2go-DEBUG-../src/httpbrokerclient.cpp:703> Server IP address: 
"s1-node104.interne.domain.fr"

x2go-DEBUG-../src/httpbrokerclient.cpp:704> Server port: "22"
x2go-DEBUG-../src/onmainwindow.cpp:1246> Removing apps from tray

x2go-DEBUG-../src/onmainwindow.cpp:3695> Server: "s1-node104.interne.domain.fr"

x2go-INFO-8> "Starting connection to server: s1-node104.interne.domain.fr:22"

x2go-DEBUG-../src/onmainwindow.cpp:2853> Starting new ssh connection to 
server:"s1-node104.interne.domain.fr":"22" krbLogin: false

x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host 
"s1-node104.interne.domain.fr"; port 22; user "user_ldap"; useproxy false; 
proxyserver ""; 
proxyport 22

x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without 
Kerberos authentication.

x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance 
SshMasterConnection(0x3bba278)  created. 

x2go-DEBUG-../src/httpbrokerclient.cpp:717> Parsing has finished.

x2go-DEBUG-../src/sshmasterconnection.cpp:495> SshMasterConnection, instance 
SshMasterConnection(0x3bba278)  entering thread. 

x2go-DEBUG-../src/sshmasterconnection.cpp:575> Setting SSH directory to 
C:/Users/user_test/ssh

x2go-DEBUG-../src/sshmasterconnection.cpp:797> Session port before config file 
parse: 22

x2go-DEBUG-../src/sshmasterconnection.cpp:807> Session port after config file 
parse: 22

x2go-DEBUG-../src/sshmasterconnection.cpp:622> "Cannot connect to 
s1-node104.interne.domain.fr:22" - "Failed to resolve hostname 
s1-node104.interne.domain.fr 
(No such host is known. )"

x2go-ERROR-2> "Connection error: Cannot connect to 
s1-node104.interne.domain.fr:22: Failed to resolve hostname 
s1-node104.interne.domain.fr (No such host is 
known. )"

x2go-DEBUG-../src/sshmasterconnection.cpp:764> SshMasterConnection, instance 
SshMasterConnection(0x3bba278)  waiting for thread to finish. 
x2go-DEBUG-../src/sshmasterconnection.cpp:766> SshMasterConnection, instance 
SshMasterConnection(0x3bba278)  thread finished. 
x2go-DEBUG-../src/sshmasterconnection.cpp:771> SshMasterConnection, instance 
SshMasterConnection(0x3bba278)  finished destructor. 

x2go-DEBUG-../src/onmainwindow.cpp:1527> Close event received.


x2go-DEBUG-../src/onmainwindow.cpp:1551> Quitting from tray icon and closing 
application.

x2go-INFO-6> "Closing X2Go Client ..."

x2go-DEBUG-../src/onmainwindow.cpp:1370> Saving settings ...

x2go-DEBUG-../src/onmainwindow.cpp:1379> Saved settings.

x2go-DEBUG-../src/onmainwindow.cpp:1517> libssh finalized.

x2go-INFO-7> "Finished X2Go Client closing hooks."

x2go-DEBUG-../src/onmainwindow.cpp:590> Destroying X2Go Client's main window.

x2go-DEBUG-../src/onmainwindow.cpp:593> Finished destructor hooks for X2Go 
Client's main window.

_______________________________________________
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Reply via email to