I am using rclone serve as a gateway to my cloud storage and it has been working flawlessly for months. But recently, I suddenly couldn't connect to the sftp server anymore because the sftp client complained that handshake failed: The host key for '192.168.1.4:2022' has changed. All I had to do tp get it to work again was remove the old key from the known_hosts file.
Not a big deal, but this makes me wonder: under what circumstances does the host key change?
I apologise if this is not even something that rclone controls, but if it is rclone that generates that key, what might have happened that triggered it to regenerate it?
And it will do so under those circumstance only? I have no idea how or why those files might have gotten deleted, but I'd assume it would have been connected to some system update (debian 11). But it seems strange that apt would interfere with rclone in that way...