Re: [X2Go-User] Can x2go session be initiated from a server to listening client?

2020-04-06 Thread Ulrich Sibiller
To my knowledge this is not possible with x2go. But I am pretty sure
is possible by using the bare nx libs (nxagent/nxproxy. But you have
to setup everything by hand then.

Uli

On Mon, Apr 6, 2020 at 7:20 PM Andrew Munn  wrote:
>
> I'd like to initiate an x2go session from a server behind a firewall to a 
> listening client with port 22 open.  How can that be done?  thanks!
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


[X2Go-User] Can x2go session be initiated from a server to listening client?

2020-04-06 Thread Andrew Munn
I'd like to initiate an x2go session from a server behind a firewall to a
listening client with port 22 open.  How can that be done?  thanks!
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] Error: connection failed to resolve hostname, using a windows 10 x2goclient and a linux/Centos 7 x2gobroker

2020-04-06 Thread Ulrich Sibiller
On Mon, Apr 6, 2020 at 4:15 PM pera  wrote:
> "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

I have no idea of x2gobroker internals and never used it so I might be
totally wrong here, but the second : in the broker URL is suspicious
to me.

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


[X2Go-User] Error: connection failed to resolve hostname, using a windows 10 x2goclient and a linux/Centos 7 x2gobroker

2020-04-06 Thread pera

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/xxx"

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 
par