Solve host key verification failed [valid]

Host key verification failed

When I wanted to connect to my server on the Mac, I found that there was a problem with my key, so Baidu took a look and made a record.

The first terminal is the picture of the problem, and the second terminal is a code to solve the problem

SSH keygen - R IP address you want to access
SSH keygen - R 192.168.1.5

Reference blog

Read More: