hasen's tech life

Twitter: @hasen

さくらサーバを再起動後,SSHしたらエラーが出たので対応.

# さくらサーバを再起動後,SSHしたらエラーが出たので対応.

$ ssh xxx@xxx.xx.xx.xxx
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ 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 RSA key sent by the remote host is
> SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
> Please contact your system administrator.
> Add correct host key in /Users/You/.ssh/known_hosts to get rid of this message.
> Offending RSA key in /Users/You/.ssh/known_hosts:82
> RSA host key for 160.16.62.230 has changed and you have requested strict checking.
> Host key verification failed.

$ vi /Users/You/.ssh/known_hosts
-- xxx.xx.xx.xxxx ...

$ ssh xxx@xxx.xx.xx.xxx
> The authenticity of host 'xxx.xx.xx.xxx (xxx.xx.xx.xxx)' can't be established.
> RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'xxx.xx.xx.xxx' (RSA) to the list of known hosts.
> xxx@xxx.xx.xx.xxx's password:

> SAKURA Internet [Virtual Private Server SERVICE]