I’ve built a new server with Leap 42.3 & installed x2go server (4.0.1.20) with agent (4.0.1.20) & broker (0.0.3.1) from the RemoteDesktop x2go repo. Desktop is LXDE.
Client is on Leap 42.2 (yes, I know it’s nearly end of life).
I want to login to sessions using ssh key auth & without password, using an ‘administrator’ user rather than root.
I have it set up so I can ssh to the box using the key & without password. keychain loads ssh-agent etc OK when I login to the client machine. All good.
But … I can’t use x2go client to get into the server - it prompts for key password (shouldn’t happen), then password (shouldn’t happen), then key password again, then I get an on-screen notification (in x2go client) that the session terminated.
I can login using the same key, but using a user of root (nasty) and root’s password. It does the same 3 prompts (key password, user password, key password) then pops up the box on the client, saying running, then up comes the desktop.
If I change sshd_config to have PermitRootLogin without-password instead of PermitRootLogin yes (default as installed), and put the appropriate stuff into authorized_keys (hardlinked to authorizes_keys2), then I can login passwordless as root using the key, but x2go won’t give me a desktop (same as administrator).
I would like at least one of (in order of preference):
- get desktop using key login (passwordless) as administrator
- get desktop using password login as administrator
- get desktop using key login, as root, with sshd having PermitRootLogin without-password
and, preferably, with x2go client using the ssh-agent key passwords / auth, or prompting at most once for the key.
Any advice for when to look for the defect, or what evidence / information will help you to locate the fault?
Thanks
David