I have been using x2go for a while now to run a couple of desktop programs on my laptop, I also use it to run the whole of the desktop's xfce session sometimes. It's excellent, thank you all.
I currently have an icon in my panel which runs the following:-
x2goclient --session=<session name>
This brings up the x2go client GUI with the appropriate session loaded and asks for my password.
Being a command line junkie I'd quite like to bypass the GUI if I can, so is there any way to get x2go[client] to ask for the password on the command line and go on to run the session?
Alternatively can I get x2go to use ssh's ControlMaster setting as I nearly always have an ssh session running to my desktop so further ssh connections don't ask for my password again.
-- Chris Green
Am 01.05.20 um 13:48 schrieb Chris Green:
We don't allow password passing on the command line for security reasons (it's particularly hard to hide parameters in the process list). However, you can user a SSH public/private key pair to authenticate, and load that key into your SSH agent. That way, you will not be prompted for a password on each connect, but only for the passphrase upon loading the key into your agent. If you're using X2Go over the internet, as opposed to on a local network, it is strongly recommended to use key files or 2FA anyway.
Also, if you're a command line junkie, you might want to check out pyhoca-cli instead of X2GoClient as your X2Go client of choice.
-Stefan
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243