[Solved] Linux scp Error: Host key verification failed.

Scenario: transfers SCP files from machine A to machine B. the error message is as follows:


Solution:
delete the [/root/.ssh/known_hosts] file on machine A or only delete [known_hosts] in the corresponding machine

Read More: