Gitlab pulling code exception after updating Git version:The authenticity of host xxx can't be established
Contents
After installing the latest version of the Git client (git version 2.34.1.windows.1), the following error is reported when pulling code from gitlab:
|
|
According to the analysis of the error message, you need to use the key of ED25519 SSH
, which is the key of RSA SSH
generated a long time ago.
The solution is as follows.
Open terminal
terminal under Mac/Linux, or Git Bash
under windows, and execute the command to generate ED25519 SSH
key.
|
|
Copy the contents of the generated ED25519 SSH
public key file ~/.ssh/id_ed25519.pub
and add it in the gitlab SSH Keys panel.
Command line copy of ~/.ssh/id_ed25519.pub
contents ref.
|
|
Related references.