Amrith Raj Herle
Amrith Raj Herle

Reputation: 875

EGit: Failed (SignatureException) to execute: Signature encoding error

I'm getting the following error when I pull or push code from GIT.

Failed (SignatureException) to execute: Signature encoding error

Upvotes: 1

Views: 960

Answers (2)

user2235450
user2235450

Reputation: 31

I faced same problem and I resolved this by upgrading eGit to version "Git integration for Eclipse 6.4.0.202211300538-r"

Upvotes: 0

Amrith Raj Herle
Amrith Raj Herle

Reputation: 875

It took a while to find a simple solution.

You can try either one of the following:

Solution 1:

  1. go to your ssh folder (cd ~/.ssh/)

  2. check if you have a config file or else create one file with the name config and copy the below details.

My current ssh folder structure

Host github.foo.com
Hostname github.foo.com
User git
Port 22
IdentityFile ~/.ssh/your_private_key
HostKeyAlgorithms ^rsa-sha2-512,rsa-sha2-256,ssh-rsa

(Replace the hostname and the path to the key as appropriate.)

In my case, I'm trying to access the IBM GitHub repository. and my private key file name is id_rsa

Example:

Host github.ibm.com
Hostname github.ibm.com
User git
Port 22
IdentityFile ~/.ssh/id_rsa
HostKeyAlgorithms ^rsa-sha2-512,rsa-sha2-256,ssh-rsa

Solution 2:

  1. go to your ssh folder (cd ~/.ssh/)
  2. Back up your known_hosts file in some other location (or rename it. for example: in the above screenshot, I changed it to known_hosts_1), and delete it.

Now try to git pull or push from the EGit. save keys in known_hosts file

Solution 3: If Solution 1: and Solution 2: does not work individually try both solutions together. i.e create a config file and also delete/rename known_hosts file.

More detailed discussion is on: https://www.eclipse.org/forums/index.php?t=msg&th=1108282/

Upvotes: 1

Related Questions