The https://gitbio.ens-lyon.fr server was moved this morning to the proxmox cluster managed by Stéphane Janczarski. The goal of this migration is to facilitate the backup and upgrade of the website (it will be easier to make a snapshot of the server and to test the update on the development gitlab server). Moreover, on the new proxmox server if one of the physical servers hosting the server fail, it will be easier for Stéphane to launch the VM of gitbio on another server, thus increasing the uptime of gitbio.
A new server means new ssh key for the server authentication. A key change that your ssh configuration is not aware of. This means that if you try to use a git push
or git pull
command, you will get the following message.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:ZwXVaoNy9sdocYK9jZ/qSqornqmvZADUuX4KRwRVhU0.
Please contact your system administrator.
Add correct host key in /<path>/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /<path>/.ssh/known_hosts:3
Host key for gitbio.ens-lyon.fr has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
You need to edit the /<path>/.ssh/known_hosts
in your favorite text editor and remove the offending line, here the line 3.
You can use the following command to do so:
ssh-keygen -f "/<path>/.ssh/known_hosts" -R "gitbio.ens-lyon.fr"
You can then retry your git
command, and you will get the following message:
The authenticity of host 'gitbio.ens-lyon.fr (140.77.166.175)' can't be established.
ED25519 key fingerprint is SHA256:k7QovAZkI8bX62lPI2fRSaHaxLE3gwxxtjFJWikf6k8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Type yes
and press enter.
Congratulations your ssh configuration is up to date for gitbio!