SUPERCAT.DEV

Benvenut* sul mio blog

BASH

SSH cambio host key

12-03-2025

SSH REMOTE HOST IDENTIFICATION HAS CHANGED

Ecco cosa fare se aggiornate il serve e il comando ssh vi da questo output

$ ssh utente@host
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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.
...
ssh-keygen -R nomehost