Hi Experts,
We have an issue when doing backup to SCP server.
1. At the beginning we use RSA public key. But now we need to use ECDSA public key.
2. I uploaded the ssh_host_ecdsa_key.pub file from SSH server, and use the command
add ssh hba hostname x.x.x.x public-key access-mode standalone file /home/admin/ssh_host_ecdsa_key.pub
"show ssh hba all " I can see the key is there. (I removed the RSA one, and can't see it anymore)
3. But when I am going to connect the server, it shows the error:
ERR_HOST_BASED_AUTH: Security issue detected.
Remote server identity has changed since last connection.
This means that either the host key has changed, or attackers are trying to steal Gaia backup (man-in-the-middle attack).
The type and fingerprint of the host key sent by the server are 'ecdsa-sha2-nistp256 pTLT*******2ADuzm**********************LYR9k7jU/S0'.
If you trust this identity, set correct host key using the command 'set ssh hba'.
For more details, please refer to sk164234.
I checked on the SSH server by
ssh-keygen -lf C:\ProgramData\ssh\ssh_host_ecdsa_key.pub
256 SHA256:pTLT*******2ADuzm**********************LYR9k7jU/S0 nt authority\system@companya.com (ECDSA)
The public key is the same as in the error message.
It looks Gaia still has the cached fingerprint for previous RSA pub key's fingerprint and won't accept the new one.
I tried
set ssh hba known-host x.x.x.x public-key access-mode standalone file /home/admin/ssh_host_ecdsa_key.pub
looks failed to set the new fingerprint:
NMHOST9999 libdb_do_transaction: connection closed during operation
Unfortunately I can't see the sk164234 , could someone let me know how to remove the previous fingerprint for RSA connection to the server?
Thanks very much