Octoprint connection error

What is the problem?

when i connect my printer to octoprint, first it says "connected" but after just a few seconds in tells :
"There was a communication error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: Too many consecutive timeouts, printer still connected and alive?"
when i go to the terminal and i shh pi@octopi.local this message appears :

"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for octopi.local has changed,
and the key for the corresponding IP address fe80::394:14ed:95f2:bc9e%15
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:0acCG5iinQ0260sETAzEq2/pgdf3zZ4417X0S10Mhu8.
Please contact your system administrator.
Add correct host key in C:\\Users\\guilh/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\guilh/.ssh/known_hosts:1
ECDSA host key for octopi.local has changed and you have requested strict checking.
Host key verification failed."

and i don't know how to correct it. Could anyone help me?

What did you already try to solve it?

I realy don't know what to do.

Have you tried running in safe mode and if so did it solve the issue?

Yes i tried but nothing has changed

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

octoprint 1.4.2
printer Prusa MK3S
browser Firefox
slicer Prusaslicer 2.2.0
windows 10

Did you flash a new system on your pis sd card since the last time you used ssh?

If so this message is perfectly normal and you have nothing to worry about.

either open the known_hosts file with something like notepad++ and remove the line in question or just delete the whole file (which also deletes all keys of other servers you might use)

Ok. I deleted known_hosts and now the terminal is fine. But octoprint keeps disconnecting from the printer. I verified all cables and they are ok. Could someone help me pls?

Guilhem Rozier

Try another usb cable - preferably one with ferrite beads

I changed both cables (the one that powers the raspberry and the one that connects it to the printer) but it still doesn't work. any other ideas?

Are you already solved this problem? I have same....