Project scenario:
Under Linux Ubuntu system, use SCP command to transfer files from another server to this server.
Problem description
tips: describe the problems encountered in the project here:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:'A string of characters'.
Please contact your system administrator.
Add correct host key in /home/tonnn/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/tonnn/.ssh/known_hosts:12
ECDSA host key for 'External Server IP' has changed and you have requested strict checking.
Host key verification failed.
Cause analysis:
Tip: fill in the problem analysis here:
I found out after Google that the ECDSA key of the cloud server was changed because I reinstalled my Aliyun server system, and the ECDSA key left in /home/tonnn/.ssh/known_hosts on the target server was still the original ECDSA key, resulting in failed Host key verification.
Solution:
Clear the ECDSA key corresponding to the IP address in the target server /home/tonnn/.ssh/known_hosts, and then add a new one.
Use the ssh-keygen -R ip-address command, and go to the official website https://www.ssh.com/academy/ssh/keygen#command-and-option-summary to check out how-to-use, which means that the known_hosts file belongs to a host all the keys of the hostname are cleared.
After clearing, reconnect the corresponding host, and the server will record the new ecdsa key
.
Read More:
- [Solved] SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- [Solved] Centos Start rabbitmq Error: ERROR: epmd error for host “192“:badarg (unknown POSIX error)
- [Solved] error:getaddrinfo ENOTFOUND xxx.xxxx.com xxx.xxxx.com:443
- Nginx realizes the same background service for portal and business
- [SSH error] ssh_exchange_identification: read: Connection reset by peer
- Git Error Resolution: errno:10054 Time out
- ls: cannot access /com: Host is down
- Linux: How to Solve Rabbitmq Plug-in Install Error
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- Installation, Configuration and Simple Use of Rancher
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- [How to Solve] Too many authentication failures for xxxx_username
- [Solved] Error: ENOSPC: System limit for number of file watchers reached
- The problem of inconsistent host names in building rabbitmq on Linux
- Common configuration methods of nginx
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- Notes on Linux SCP command using specific port
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]