<div dir="ltr">Actually, I also turned on debug on the client, and it seems to indicate that I do auth, but am refused PTY access.<div><br></div><div>2go-DEBUG-../src/httpbrokerclient.cpp:684> Starting parser.<br>x2go-DEBUG-../src/httpbrokerclient.cpp:703> Server IP address: "192.168.56.228"<br>x2go-DEBUG-../src/httpbrokerclient.cpp:704> Server port: "22"<br>x2go-DEBUG-../src/onmainwindow.cpp:3695> Server: "192.168.56.228"<br>x2go-INFO-8> "Starting connection to server: <a href="http://192.168.56.228:22">192.168.56.228:22</a>"<br>x2go-DEBUG-../src/onmainwindow.cpp:2853> Starting new ssh connection to server:"192.168.56.228":"22" krbLogin: false<br>x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host "192.168.56.228"; port 22; user "brians"; useproxy false; proxyserver ""; proxyport 22<br>x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.<br>x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance SshMasterConnection(0x7f05c0007c50) created.<br>x2go-DEBUG-../src/httpbrokerclient.cpp:717> Parsing has finished.<br>x2go-DEBUG-../src/sshmasterconnection.cpp:495> SshMasterConnection, instance SshMasterConnection(0x7f05c0007c50) entering thread.<br>x2go-DEBUG-../src/sshmasterconnection.cpp:797> Session port before config file parse: 22<br>x2go-DEBUG-../src/sshmasterconnection.cpp:807> Session port after config file parse: 22<br>x2go-DEBUG-../src/sshmasterconnection.cpp:870> Session port before config file parse (part 2): 22<br>x2go-DEBUG-../src/sshmasterconnection.cpp:880> Session port after config file parse (part 2): 22<br>x2go-DEBUG-../src/sshmasterconnection.cpp:904> cserverAuth<br>x2go-DEBUG-../src/sshmasterconnection.cpp:943> state: 1<br><br>x2go-DEBUG-../src/sshmasterconnection.cpp:1324> Trying to authenticate user with private key.<br>x2go-DEBUG-../src/sshmasterconnection.cpp:1340> Temporarily saved key in "/home/brians/.x2go/ssh/gen/key.DkiWvu"<br>x2go-DEBUG-../src/sshmasterconnection.cpp:1507> Authenticating with key: 0<br><br>x2go-DEBUG-../src/sshmasterconnection.cpp:687> User authentication OK.<br>x2go-DEBUG-../src/sshmasterconnection.cpp:1671> "ssh_channel_request_pty failed": "Channel request pty-req failed"<br></div><div><br></div><div><br></div><div>I do in fact allow PTY in the sshd_config, however doesn't the broker disallow this with the key that it adds? I see it adding the key with "no-X11-forwarding,no-pty,no-user-rc". So is this not the key that gets used, and I still have some sshd_config settings somewhere, or do I have to tell the broker to allow this and it will update the key's settings?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 18, 2022 at 8:52 AM Brian Sanders <<a href="mailto:brian.sanders@gmail.com">brian.sanders@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am trying to get the broker to work with the auto login feature, and I can't seem to get it to work. I am using an ansible playbook and building a broker, and then 2 workstations. I setup wks1 to autologin and wks2 with out. I can use wks2 just fine, but when I try and use wk1, It seems the new key is added, and the workstation indicates that it accepts a session for my user. However the X2go client then shows me a login/password box rather than logging me into the session.<div><br></div><div>I have logs from the server and the workstation, can someone help point me in the right direction?<br><br>Session configuration:<br>[DEFAULT]<br>command=TERMINAL<br>defsndport=true<br>useiconv=false<br>iconvfrom=UTF-8<br>height=600<br>width=800<br>export=<br>quality=9<br>fullscreen=false<br>layout=<br>useexports=true<br>speed=2<br>soundsystem=pulse<br>print=true<br>type=auto<br>sndport=4713<br>xinerama=true<br>variant=<br>usekbd=true<br>fstunnel=true<br>applications=TERMINAL,WWWBROWSER,MAILCLIENT,OFFICE<br>multidisp=false<br>sshproxyport=22<br>sound=true<br>rootless=true<br>iconvto=UTF-8<br>soundtunnel=true<br>dpi=96<br>sshport=22<br>setdpi=0<br>pack=16m-jpeg<br>directrdp=false<br>user=BROKER_USER<br><br>[[wks1]]<br>acl-groups-allow=test_group<br>broker-session-autologin=true<br>command=xfce<br>host=192.168.56.228<br>name=Molecule Wks1<br><br>[[wks2]]<br>command=xfce<br>host=192.168.56.229<br>name=Molecule Wks2<br></div><div><br></div><div>Broker logs:</div><div>==> /var/log/x2gobroker/broker.log <==<br>2022-01-18 13:45:07,395 - broker - INFO - client address is 192.168.56.1<br>2022-01-18 13:45:07,397 - broker - DEBUG - broker_username: brians, server_username: brians, password: XXXXX, task: selectsession, profile_id: [wks1, cookie: 83ddbd2d-c4ca-4f22-bb0b-b3629d522fc5<br>2022-01-18 13:45:07,397 - broker - DEBUG - base_broker.X2GoBroker.check_access(): checking if our configured cookie was submitted: False<br>2022-01-18 13:45:07,397 - broker - DEBUG - base_broker.X2GoBroker.check_access(): found valid auth key for user cookie: brians_83ddbd2d-c4ca-4f22-bb0b-b3629d522fc5<br>2022-01-18 13:45:07,398 - broker - DEBUG - base_broker.X2GoBroker.check_access(): Giving cookie: 0ca4bea5-f216-4f59-ae6b-1e103243814e to ip 192.168.56.1<br>2022-01-18 13:45:07,402 - broker - DEBUG - base_broker.X2GoBroker.get_agent_query_mode(): found default-agent-query-mode in global config section: ssh<br>2022-01-18 13:45:07,407 - broker - DEBUG - base_broker.X2GoBroker.get_agent_hostkey_policy(): found default-agent-hostkey-policy in global config section: WarningPolicy<br>2022-01-18 13:45:07,475 - broker - INFO - Executing agent command on remote host 192.168.56.228 (192.168.56.228): sh -c '/usr/lib/x2go/x2gobroker-agent foo ping'<br>2022-01-18 13:45:08,258 - broker - INFO - Broker agent answered: OK; <br>2022-01-18 13:45:08,304 - broker - INFO - Executing agent command on remote host 192.168.56.228 (192.168.56.228): sh -c '/usr/lib/x2go/x2gobroker-agent brians listsessions'<br>2022-01-18 13:45:09,164 - broker - INFO - Broker agent answered: OK; <br>2022-01-18 13:45:09,165 - broker - DEBUG - base_broker.X2GoBroker.get_agent_query_mode(): found default-agent-query-mode in global config section: ssh<br>2022-01-18 13:45:09,165 - broker - DEBUG - base_broker.X2GoBroker.get_portscan_x2goservers(): found default-portscan-x2goservers in global config section: True<br>2022-01-18 13:45:09,167 - broker - DEBUG - base_broker.X2GoBroker.get_session_autologin(): found broker-session-autologin in session profile with ID [wks1: True. This one has precendence over the default value.<br>2022-01-18 13:45:09,177 - broker - DEBUG - base_broker.X2GoBroker.get_authorized_keys_file(): found default-authorized-keys in global config section: %h/.x2go/authorized_keys<br>2022-01-18 13:45:09,221 - broker - INFO - Executing agent command on remote host 192.168.56.228 (192.168.56.228): sh -c '/usr/lib/x2go/x2gobroker-agent brians addauthkey "no-X11-forwarding,no-pty,no-user-rc ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5JtTMMkSa3yus8ciCIcYvzl7FYvEsFtoppLFyce3zEfc8+zg4xH3qSwDIHP/2f0nUBiuOESIRjsVQa0nIxjQljXegJO82p/6ixP1eZHzNZUuTCHBL4vA7QAVteHJgBFhUYz4rqPQIwyrQR9STu/cLu0fGIKvFxIf0LIC0zs2Xf+B6qQwoXQF4aR9G2AGOaeGcvwBItyLhVxWwzHmoxAHAqWMCisFPGACItfdDixhZl9IyCdcmsyFxWsndjgKPXAJGBxUREIkntaXgtZ7IrIDhrTtY9xWy0mJUwKlIdqluViMxyWagQM5TX38OVYH+fR2DaNV3WxCuO8pKHgH24ExV <a href="mailto:brians@192.168.56.1" target="_blank">brians@192.168.56.1</a>" "%h/.x2go/authorized_keys"'<br>2022-01-18 13:45:09,921 - broker - INFO - Broker agent answered: OK; <br>2022-01-18 13:45:09,921 - broker - DEBUG - base_broker.X2GoBroker.get_authorized_keys_file(): found default-authorized-keys in global config section: %h/.x2go/authorized_keys<br>2022-01-18 13:45:09,923 - broker - DEBUG - Scheduled deletion of authorized key in 20s: user=brians, hostname=192.168.56.228, hostaddr=192.168.56.228<br>2022-01-18 13:45:29,981 - broker - INFO - Executing agent command on remote host 192.168.56.228 (192.168.56.228): sh -c '/usr/lib/x2go/x2gobroker-agent brians delauthkey "no-X11-forwarding,no-pty,no-user-rc ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5JtTMMkSa3yus8ciCIcYvzl7FYvEsFtoppLFyce3zEfc8+zg4xH3qSwDIHP/2f0nUBiuOESIRjsVQa0nIxjQljXegJO82p/6ixP1eZHzNZUuTCHBL4vA7QAVteHJgBFhUYz4rqPQIwyrQR9STu/cLu0fGIKvFxIf0LIC0zs2Xf+B6qQwoXQF4aR9G2AGOaeGcvwBItyLhVxWwzHmoxAHAqWMCisFPGACItfdDixhZl9IyCdcmsyFxWsndjgKPXAJGBxUREIkntaXgtZ7IrIDhrTtY9xWy0mJUwKlIdqluViMxyWagQM5TX38OVYH+fR2DaNV3WxCuO8pKHgH24ExV <a href="mailto:brians@192.168.56.1" target="_blank">brians@192.168.56.1</a>" "%h/.x2go/authorized_keys"'<br>2022-01-18 13:45:30,816 - broker - INFO - Broker agent answered: OK;</div><div><br></div><div><br></div><div>Workstation auth.log</div><div> Jan 18 13:45:07 ubuntu-focal sshd[36704]: error: kex_exchange_identification: Connection closed by remote host<br></div>Jan 18 13:45:07 ubuntu-focal sshd[36705]: error: kex_exchange_identification: Connection closed by remote host<br>Jan 18 13:45:07 ubuntu-focal sshd[36706]: Accepted publickey for x2gobroker from 192.168.56.230 port 58526 ssh2: RSA SHA256:dBs4pnJUuc0/h4OUI52+D8aKAbTaDC1QYtbB8/eH/l4<br>Jan 18 13:45:07 ubuntu-focal sshd[36706]: pam_unix(sshd:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:07 ubuntu-focal systemd-logind[713]: New session 32 of user x2gobroker.<br>Jan 18 13:45:07 ubuntu-focal systemd: pam_unix(systemd-user:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:07 ubuntu-focal sshd[36706]: pam_unix(sshd:session): session closed for user x2gobroker<br>Jan 18 13:45:07 ubuntu-focal systemd-logind[713]: Session 32 logged out. Waiting for processes to exit.<br>Jan 18 13:45:07 ubuntu-focal systemd-logind[713]: Removed session 32.<br>Jan 18 13:45:07 ubuntu-focal sshd[36820]: error: kex_exchange_identification: Connection closed by remote host<br>Jan 18 13:45:08 ubuntu-focal sshd[36821]: Accepted publickey for x2gobroker from 192.168.56.230 port 58530 ssh2: RSA SHA256:dBs4pnJUuc0/h4OUI52+D8aKAbTaDC1QYtbB8/eH/l4<br>Jan 18 13:45:08 ubuntu-focal sshd[36821]: pam_unix(sshd:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:08 ubuntu-focal systemd-logind[713]: New session 34 of user x2gobroker.<br>Jan 18 13:45:08 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/x2golistsessions --all-servers<br>Jan 18 13:45:08 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:08 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:08 ubuntu-focal sshd[36821]: pam_unix(sshd:session): session closed for user x2gobroker<br>Jan 18 13:45:08 ubuntu-focal systemd-logind[713]: Session 34 logged out. Waiting for processes to exit.<br>Jan 18 13:45:08 ubuntu-focal systemd-logind[713]: Removed session 34.<br>Jan 18 13:45:08 ubuntu-focal sshd[36921]: error: kex_exchange_identification: Connection closed by remote host<br>Jan 18 13:45:08 ubuntu-focal sshd[36922]: error: kex_exchange_identification: Connection closed by remote host<br>Jan 18 13:45:08 ubuntu-focal sshd[36923]: Accepted publickey for x2gobroker from 192.168.56.230 port 58536 ssh2: RSA SHA256:dBs4pnJUuc0/h4OUI52+D8aKAbTaDC1QYtbB8/eH/l4<br>Jan 18 13:45:08 ubuntu-focal sshd[36923]: pam_unix(sshd:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:08 ubuntu-focal systemd-logind[713]: New session 35 of user x2gobroker.<br>Jan 18 13:45:09 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/mkdir -p /home/brians/.x2go<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:09 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/touch /home/brians/.x2go/authorized_keys<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:09 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/cat /home/brians/.x2go/authorized_keys<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:09 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/tee -a /home/brians/.x2go/authorized_keys<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:09 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:09 ubuntu-focal sshd[36923]: pam_unix(sshd:session): session closed for user x2gobroker<br>Jan 18 13:45:09 ubuntu-focal systemd-logind[713]: Session 35 logged out. Waiting for processes to exit.<br>Jan 18 13:45:09 ubuntu-focal systemd-logind[713]: Removed session 35.<br>Jan 18 13:45:09 ubuntu-focal sshd[37020]: Accepted publickey for brians from 192.168.56.1 port 42394 ssh2: RSA SHA256:4fPeupT3DmbLhiYOu08NOn1H8wYDYxEVVpHSg+gWLtw<br>Jan 18 13:45:09 ubuntu-focal sshd[37020]: pam_unix(sshd:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:09 ubuntu-focal systemd-logind[713]: New session 36 of user brians.<br>Jan 18 13:45:09 ubuntu-focal systemd: pam_unix(systemd-user:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:10 ubuntu-focal sshd[37020]: pam_unix(sshd:session): session closed for user brians<br>Jan 18 13:45:10 ubuntu-focal systemd-logind[713]: Session 36 logged out. Waiting for processes to exit.<br>Jan 18 13:45:10 ubuntu-focal systemd-logind[713]: Removed session 36.<br>Jan 18 13:45:29 ubuntu-focal sshd[37159]: error: kex_exchange_identification: Connection closed by remote host<br>Jan 18 13:45:29 ubuntu-focal sshd[37160]: Accepted publickey for x2gobroker from 192.168.56.230 port 58540 ssh2: RSA SHA256:dBs4pnJUuc0/h4OUI52+D8aKAbTaDC1QYtbB8/eH/l4<br>Jan 18 13:45:29 ubuntu-focal sshd[37160]: pam_unix(sshd:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:29 ubuntu-focal systemd-logind[713]: New session 38 of user x2gobroker.<br>Jan 18 13:45:29 ubuntu-focal systemd: pam_unix(systemd-user:session): session opened for user x2gobroker by (uid=0)<br>Jan 18 13:45:30 ubuntu-focal sudo: root : TTY=unknown ; PWD=/var/lib/x2gobroker ; USER=brians ; COMMAND=/usr/bin/sed -e s!^no-X11-forwarding,no-pty,no-user-rc ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5JtTMMkSa3yus8ciCIcYvzl7FYvEsFtoppLFyce3zEfc8+zg4xH3qSwDIHP/2f0nUBiuOESIRjsVQa0nIxjQljXegJO82p/6ixP1eZHzNZUuTCHBL4vA7QAVteHJgBFhUYz4rqPQIwyrQR9STu/cLu0fGIKvFxIf0LIC0zs2Xf+B6qQwoXQF4aR9G2AGOaeGcvwBItyLhVxWwzHmoxAHAqWMCisFPGACItfdDixhZl9IyCdcmsyFxWsndjgKPXAJGBxUREIkntaXgtZ7IrIDhrTtY9xWy0mJUwKlIdqluViMxyWagQM5TX38OVYH+fR2DaNV3WxCuO8pKHgH24ExV <a href="mailto:brians@192.168.56.1" target="_blank">brians@192.168.56.1</a>$!! -e /^$/d -i /home/brians/.x2go/authorized_keys<br>Jan 18 13:45:30 ubuntu-focal sudo: pam_unix(sudo:session): session opened for user brians by (uid=0)<br>Jan 18 13:45:30 ubuntu-focal sudo: pam_unix(sudo:session): session closed for user brians<br>Jan 18 13:45:30 ubuntu-focal sshd[37160]: pam_unix(sshd:session): session closed for user x2gobroker<br>Jan 18 13:45:30 ubuntu-focal systemd-logind[713]: Session 38 logged out. Waiting for processes to exit.<br>Jan 18 13:45:30 ubuntu-focal systemd-logind[713]: Removed session 38.<br>Jan 18 13:45:32 ubuntu-focal dbus-daemon[701]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)</div>
</blockquote></div>