[Solved] Sshpass Error: Host key verification failed

Use SSH to log in once, and then log in through sshpass

ssh -p 22 -o StrictHostKeyChecking=no  [email protected]

Note: you’d better check whether there is a SSH password free login configuration first. If there is, clear it

Read More: