Page 1 of 1
SSH to GIT not working
Posted: Thu Apr 08, 2021 12:59 pm
by DanOvergaard
Hi,
I have tried to setup a connection to GITLAB by using the GIT Client and SSH, but it's not working - Oxygen Editor keeps asking for a SSH Passphrase
I have it all to run via TortoiseGit, so the configuration on GIT is working
PLease help
Re: SSH to GIT not working
Posted: Thu Apr 08, 2021 2:36 pm
by sorin_carbunaru
Hello,
If you are using Pageant or ssh-agent, it seems that the Apache MINA SSHD library that we use in our Git Client does not support them:
-
https://bugs.eclipse.org/bugs/show_bug.cgi?id=541275
-
https://bugs.eclipse.org/bugs/show_bug.cgi?id=541274
You could try switching to JSch by adding "-DuseJschForSSHOperations=true" to the "oxygen[VERSION_HERE].vmoptions" file in the Oxygen installation folder, but keep in mind that JSch does not seem to be maintained anymore.
You could also try using SSH keys as described here:
1.
https://docs.gitlab.com/ee/ssh/#generat ... h-key-pair
2.
https://docs.gitlab.com/ee/ssh/#add-an- ... ab-account
This second approach from the GitLab docs is the one that I have successfully used over and over again.
All the best wishes,
Sorin Carbunaru
Oxygen XML Editor
Re: SSH to GIT not working
Posted: Fri Apr 09, 2021 9:21 am
by DanOvergaard
Hi,
Thanks for you reply, but the problem was that Oxygen couldn't find the private key.
The solution was to
- Rename the private key to "id_rsa" (Default name) - Found in C:\Users\"User"\.ssh
- Set the $HOME variable to: C:\Users\"User"
I am not sure the setting the $HOME was necessary as it was a previous change, but I can't rule it out
Note
I would suggest to make it possible to point to the private key in the SSH configuration within Oxygen
/Dan
Re: SSH to GIT not working
Posted: Fri Apr 09, 2021 11:47 am
by sorin_carbunaru
Hi Dan,
SSH know how to automatically load private keys only if they have the default names. I dare say that setting the $HOME variable didn't help you with this issue, but the renaming of the private key file really did the trick.
I added a feature request based on your suggestion (EXM-47801 - for reference purposes). We will update this thread when it will be implemented.
All the best wishes,
Sorin Carbunaru
Oxygen XML Editor