ssh接続ができなくなる原因
ssh-keygen -Aを実行したため。
エラー内容
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 XXXXXX key sent by the remote host is
SHA256:xxxx.
Please contact your system administrator.
対処法
以下のコマンドをターミナル上で打ち込めば解消できる
ssh-keygen -R [IPアドレス]
再びssh接続すれば問題ない