Able to connect by SSH, but not x2go [closed]

Solution 1:

Encountered the same problem from Windows could not connect to remote linux client with SSH Key. Even Auto Login with Pageant running from PuTTY directly or running the included X2GO Pageant would not use my Windows PPK formatted ssh key. I had to use my linux formated style ssh key. Once I used that in the X2GO client config, I was able to successfully connect to my linux client again, using the more secure ssh tunnel instead of password authentication.

Turn PuTTY Formatted SSH into Linux Formatted SSH:

Copy your PPK to your linux machine Run the following commands, and copy that output file back to your windows box

chmod 400 ppkfile

ssh-keygen -i -f ppkfile > linuxstylekey

Solution 2:

These answers didn't work for me.

This answer resolved my issue: x2go passphrase prompt then authentication fail

The solution is to create an old-style rsa key like this.

ssh-keygen -m PEM -t rsa -b 4096

Also, the above linked answer didn't work for me with pageant.exe (it gave a wrong key format error). But that was fine, since I could specify the above generated .ppk file via the X2Go sessions tab "Use RSA/DSA key for ssh connection:".

This all was a bit tricky to troubleshoot, since no relevant errors were given by the X2Go client.