Hi Dimitra,
Am 09.11.24 um 18:52 schrieb Dimitra Mitsoudi:
I am using X2Go Client to enter a linux server using SSH key authentication. However, I encountered an issue where, after providing my SSH key passphrase and successfully logging in, I was prompted for a password once more. This second prompt seems unnecessary, as I am using key-based authentication that works flawlessly through the Command Prompt. SSH keys are for passwordless login in servers. If you're being prompted for a password, it means that keyfile authentication failed.
During installation of X2GoClient for Windows, you can select whether or not a debug version of the client should be installed. If you choose to install it, you can run
x2goclient.debug.exe --debug
in a command line window and watch the debug messages scroll by. I'm pretty sure you'll see that your keyfile has been rejected - it might be in the wrong format.
It's been a while since I last used the Windows client in conjunction with keyfiles, but it might be that you need to convert the key into PuTTY's PPK format. There's a tool for that named puttygen.exe that gets installed alongside X2GoClient for Windows. You could also try running pageant.exe (an SSH Key Agent for Windows), loading your key into that (for that, it *must* be in PPK format), and finally simply checking "Try auto login", without specifying a keyfile.
Kind Regards, Stefan Baur
-- 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