[X2Go-User] Broker + SSH Proxy + Windows Terminal Server: "An exceptional problem occurred"

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Thu Dec 12 22:56:01 CET 2013


Hi Mathias,

On  Mo 09 Dez 2013 14:29:37 CET, Mathias Ewald wrote:

> Hi, working on RDP to Windows Server 2008 through SSH proxy I am
> seeing this in X2goclient: "Authentication failed" together with
>
> Query to remote X2Go Broker Agent (user: x2gobroker, hostname:
> 192.168.3.101, port: 22) failed
>
> in debug output.
>
> On the broker I can see this:
>
> ==> /var/log/x2gobroker/broker.log <==
> 2013-12-09 15:12:40,304 - broker - INFO - client address is 192.168.2.100
> 2013-12-09 15:12:40,322 - broker - DEBUG - username: student0,
> password: XXXXX, task: listsessions, profile_id:
> 2013-12-09 15:12:40,323 - broker - DEBUG -
> base_broker.X2GoBroker.get_authentication_mechanism(): found
> default-auth-mech in global config section: pam
> 2013-12-09 15:12:40,323 - broker - DEBUG -
> base_broker.X2GoBroker._do_authenticate(): authenticating
> user=student0 with password=<hidden> against backend=inifile.
> 2013-12-09 15:12:40,324 - broker - DEBUG - connecting to
> authentication service socket
> /run/x2gobroker/x2gobroker-authservice.socket
> 2013-12-09 15:12:40,324 - broker - DEBUG - sending username=student0,
> password=<hidden>, service=x2gobroker to authentication service
> 2013-12-09 15:12:40,342 - broker - INFO - authentication against PAM
> service »x2gobroker« succeeded for user »student0«
> 2013-12-09 15:12:40,343 - broker - DEBUG -
> base_broker.X2GoBroker.check_access(): result of authentication check
> is: True
> 2013-12-09 15:12:40,349 - broker - DEBUG -
> base_broker.X2GoBroker.get_session_autologin(): found
> default-session-autologin in global config section: False
> 2013-12-09 15:12:40,356 - broker - DEBUG -
> base_broker.X2GoBroker.get_agent_query_mode(): found
> default-agent-query-mode in global config section: ssh
> 2013-12-09 15:12:40,484 - broker - DEBUG - Executing agent command on
> remote host (192.168.3.100): sh -c "/usr/lib/x2go/x2gobroker-agent foo
> ping"
> 2013-12-09 15:12:40,677 - broker - WARNING -
> base_broker.X2GoBroker.get_remote_agent(): failed to allocate any
> broker agent (query-mode: SSH, remote_agent: {u'hostname':
> '192.168.3.100', u'port': 22})
> 2013-12-09 15:12:40,826 - broker - DEBUG - Executing agent command on
> remote host (192.168.3.100): sh -c "/usr/lib/x2go/x2gobroker-agent
> student0 listsessions"
> 2013-12-09 15:12:41,202 - broker - DEBUG -
> base_broker.X2GoBroker.get_session_autologin(): found
> default-session-autologin in global config section: False
> 2013-12-09 15:12:41,208 - broker - DEBUG -
> base_broker.X2GoBroker.get_agent_query_mode(): found
> default-agent-query-mode in global config section: ssh
>
> ==> /var/log/x2gobroker/error.log <==
> 2013-12-09 15:12:41,213 - error - ERROR - An exceptional problem
> occurred: X2GoBrokerAgentException("Query to remote X2Go Broker Agent
> (user: x2gobroker, hostname: 192.168.3.101, port: 22) failed")
>
>
> So x2gobroker tries to connect to x2gobroker-agent on the remote host.
> But as it's a Windows Machine, there is no SSH server listening. Why
> is it doing this? Here is my session config:
>
> [DEFAULT]
> command=TERMINAL
> defsndport=true
> useiconv=false
> iconvfrom=UTF-8
> height=600
> export=
> quality=9
> fullscreen=false
> layout=
> useexports=true
> width=800
> speed=2
> soundsystem=pulse
> print=true
> type=auto
> sndport=4713
> xinerama=true
> variant=
> usekbd=true
> fstunnel=true
> applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE
> multidisp=false
> sshproxyport=22
> sound=true
> rootless=true
> iconvto=UTF-8
> soundtunnel=true
> dpi=96
> sshport=22
> setdpi=0
> pack=16m-jpeg
> directrdp=false
>
> [test-rdp]
> rdpclient=rdesktop
> directrdpsettings=
> host=192.168.3.101
> user=Administrator
> rdpport=3389
> directrdp=true
> command=RDP
> rdpoptions=
> rdpserver=10.0.0.123
> usesshproxy=true
> sshproxytype=SSH
> sshproxyuser=root
> sshproxykeyfile=
> sshproxyhost=broker
> sshproxyport=22
> sshproxysamepass=false
> sshproxysameuser=false
> sshproxyautologin=false
> acl-clients-allow=ALL
> acl-groups-allow=xfceusers
>
>
> regards
>
>   Mathias
>

Can you submit the above text as a bug against x2gobroker? Of course,  
no agent queries should take place if directrdp is enabled in the  
session profile. This is a bug!!! Please report it under _your_  
identity to our BTS (for the sake of good book keeping).

Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131212/ec80e09b/attachment.pgp>


More information about the x2go-user mailing list