Hello,

I am trying to configure the x2gobroker to do key-based login to the servers 
after sucessfull authentication against the broker. 
Everything looks fine, except the client. It tries to login with the correct 
key, but a wrong username. It uses the username from the local machine.

e.g.
- On my local machine, I am logged in as user "martin"
- start the client with --broker-url=http://192.168.0.1:8080/plain/inifile/
- successfully authenticate with the username "udo" and a password against the 
broker
- select the session 
-> login failed, so I do some research and the auth.log of the remote machine 
shows that I try to login with the broker-generated key, but the username 
"martin" instead of "udo"

the profile in x2gobroker-sessionprofiles.conf:
[TEST]
user=
host=pegbar1 (192.168.0.1)
name=TEST
command=KDE
fullscreen = true
broker-session-autologin=true
broker-use-load-checker=true
broker-authorized-keys=%h/.x2go/authorized_keys

/var/log/x2gobroker/broker.log shows the key generation for user "udo":
2020-01-20 12:14:21,249 - broker - DEBUG - 
base_broker.X2GoBroker.get_authorized_keys_file(): found broker-authorized-keys 
in session profile with ID TEST: %h/.x2go/authorized_keys. This one has 
precendence over the default value.
2020-01-20 12:14:21,317 - broker - INFO - Executing agent command on remote 
host pegbar1 (192.168.0.1): sh -c '/usr/lib/x2go/x2gobroker-agent udo 
addauthkey "no-X11-forwarding,no-pty,no-user-rc ssh-rsa [***] udo@192.168.0.40" 
"%h/.x2go/authorized_keys"'
2020-01-20 12:14:21,462 - broker - INFO - Broker agent answered: OK; 
2020-01-20 12:14:21,463 - broker - DEBUG - 
base_broker.X2GoBroker.get_authorized_keys_file(): found broker-authorized-keys 
in session profile with ID TEST: %h/.x2go/authorized_keys. This one has 
precendence over the default value.
2020-01-20 12:14:21,465 - broker - DEBUG - Scheduled deletion of authorized key 
in 20s: user=udo, hostname=pegbar1, hostaddr=192.168.0.1
2020-01-20 12:14:41,569 - broker - INFO - Executing agent command on remote 
host pegbar1 (192.168.0.1): sh -c '/usr/lib/x2go/x2gobroker-agent udo 
delauthkey "no-X11-forwarding,no-pty,no-user-rc ssh-rsa [***] udo@192.168.0.40" 
"%h/.x2go/authorized_keys"'
2020-01-20 12:14:41,712 - broker - INFO - Broker agent answered: OK;

/var/log/auth.log shows the failed login for user "martin":
Jan 20 12:14:21 pegbar1 sshd[7131]: debug1: trying public key file 
/home/martin/.x2go/authorized_keys
Jan 20 12:14:21 pegbar1 sshd[7131]: debug1: fd 4 clearing O_NONBLOCK
Jan 20 12:14:21 pegbar1 sshd[7131]: debug1: restore_uid: 0/0
Jan 20 12:14:21 pegbar1 sshd[7131]: Failed publickey for martin from 
192.168.0.40 port 57732 ssh2: RSA SHA256:***


Am I missing some configuration or this this a (known?) bug in x2goclient?

Thank you very much and best regards,
Martin


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

Reply via email to