Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Martin Lange
If you use this patch you need to add the pubkey modification to DelAuthKey too. Otherwise the key doesn't match and will never get deleted. Am 18.01.22 um 18:11 schrieb Brian Sanders: I guess to for completeness, if someone needs more help, the following is the simple patch I am using (Ubuntu

Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Brian Sanders
Best I can tell, the real fix would be in line 647 of the agent.py in the x2gobroker git repo. 645 # FIXME: the from opti

Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Brian Sanders
I guess to for completeness, if someone needs more help, the following is the simple patch I am using (Ubuntu ppa server) @@ -90,6 +90,7 @@ { my ($uid, $uidNumber, $gidNumber, $home, $pubkey, $authkeyfile)=@_; + $pubkey =~ s/no-pty,//; # rewrite %%, %u, %U, %G and %h in authkeyfile string

Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Brian Sanders
Thank you, I was on the right track but this confirms it. I am going to edit my ansible playbook to deploy this as a patch to the file. Hopefully it will just keep working for a while. Through digging around I can tell you that the broker is the one which generates the keys. It then calls the s

Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Martin Lange
Hi Brian, I had the same problem using plasma. This is because the generated ssh key includes a no-pty option. I don't know where this key is generated, so I "hacked" /usr/lib/x2go/x2gobroker-agent.pl on every server and added $pubkey =~ s/no-pty,//; on the beginning of AddAuthKey() and Del

Re: [X2Go-User] Auto-login assistance

2022-01-18 Thread Brian Sanders
Actually, I also turned on debug on the client, and it seems to indicate that I do auth, but am refused PTY access. 2go-DEBUG-../src/httpbrokerclient.cpp:684> Starting parser. x2go-DEBUG-../src/httpbrokerclient.cpp:703> Server IP address: "192.168.56.228" x2go-DEBUG-../src/httpbrokerclient.cpp:704

[X2Go-User] Auto-login assistance

2022-01-18 Thread Brian Sanders
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 ne