linux Error

SSH "Host key verification failed" Error

This article introduces how to handle and resolve the "Host key verification failed" error that occurs with SSH on Linux PC/server command lines. Please contact your system administrator. Add correct host key in...

Shou Arisaka
1 min read
Nov 6, 2025

This article introduces how to handle and resolve the “Host key verification failed” error that occurs with SSH on Linux PC/server command lines.

Please contact your system administrator.
Add correct host key in /home/yuis/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/yuis/.ssh/known_hosts:13
  remove with: ssh-keygen -f "/home/yuis/.ssh/known_hosts" -R 192.168.3.10
ECDSA host key for 192.168.3.10 has changed and you have requested strict checking.
Host key verification failed.

Solution

Reset past connection information with ssh-keygen

ssh-keygen -f "/home/yuis/.ssh/known_hosts" -R 192.168.3.10

Share this article

Shou Arisaka Nov 6, 2025

🔗 Copy Links