Set the ssh public key to prompt the remote host to be different from the local key

according to the following tutorial settings of Code Cloud, the key has been successfully set. The last step: after being added, type
ssh-T git@git.oschina.net in the terminal (Terminal) and there will be a problem. The question prompted by
is:
Warning: the RSA host key for "gitee.com" differs from the key for the IP address" Native ip address"
Offending key for IP in / c/Users/xsooy-pc/.ssh/known_hosts:1
Matching host key in / c/Users/xsooy-pc/.ssh/known_hosts:2
Are you sure you want to continue connecting (yes/no)?

after I choose yes, I prompt: ssh_packet_read: Connection closed

I can also successfully submit code in intellij, but every time I submit it, I will prompt this question with a different key. What is the reason for this? Did I set the ssh key twice in the same computer? But I deleted the old key. Is it not deleted clean? Do you still need to set it up somewhere in intellij?

< hr >

how to generate ssh public key

you can generate sshkey: by following the command

ssh-keygen-t rsa-C "xxxxx@xxxxx.com"

< H1 > Generating public/private rsa key pair. < / H1 > < H1 > enter three times to generate ssh key < / H1 >

check your public key, and add it to Ciyun (Gitee.com) SSH key add address

)

cat ~ / .ssh/id_rsa.pub

< H1 > ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc. < / H1 > After

is added, enter

in the terminal (Terminal)

ssh-T git@git.oschina.net
if returned

Welcome to Git@OSC, yourname!
proves that the addition is successful.

Mar.10,2021

this problem is very simple. Please refer to the following link:
SSH Warning: the RSA host key for differs from the key for the IP address


delete the key on the remote host, and then send a new one.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf6d4b-32011.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf6d4b-32011.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?