homeassistant-ssh icon indicating copy to clipboard operation
homeassistant-ssh copied to clipboard

SSH failed - expected host key does not match

Open kixmto opened this issue 10 months ago • 4 comments

Hi there,

I am running the SSH integration on HASS OS and I added a host successfully with the integration for testing. After a while I reinstalled an Pi Os image on the host and since then I am not able to connect to the host again. I get the following error:

SSH connection failed (Host key for server '192.168.0.x' does not match: got 'abc', expected 'xyz').

Makes sense, since the image changed, hence the key files also changed. I wanted to delete the host key file on HASS OS but there is no file in ~/.ssh/known_hosts. I tried it in different locations, with root but had no success. The known_hosts file does not exist.

There is a known_hosts file in /homeassistant(config) and it shows a different host that I added to the integration, but not the one with the mismatch.

Any ideas? Thanks in regards!

kixmto avatar Apr 13 '24 19:04 kixmto