raspberry pi再インストール後にssh接続するには

久しぶりにOpenELECを入れ直したら、sshで接続できませんでした。。。

以降、覚書です。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Please contact your system administrator.
Add correct host key in /Users/Yama/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/Yama/.ssh/known_hosts:2
RSA host key for 192.168.0.22 has changed and you have requested strict checking.
Host key verification failed.

と言われたので、known_hostsを消すことに。

vi /Users/Yama/.ssh/known_hosts

で、2行目だけを削除して保存。これで完了。

 

コメント