railsがんばる子

Ruby on Railsがんばる子です。胡蝶蘭のECサイトを運営しています。

vagrant再作成するとSSH繋がらなくなったときの対処

vagrant destroy
vagrant up 

vagrantを壊して、再び作るとエラーがでる。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
ff:76:6f:f7:b0:1e:e1:e2:52:e5:2d:35:3f:7e:99:0a.
Please contact your system administrator.
Add correct host key in /Users/xxxxxxxx/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/xxxxxxxxx/.ssh/known_hosts:19
RSA host key for 192.168.33.100 has changed and you have requested strict checking.
Host key verification failed.
ssh-keygen -R 192.168.33.100

known_hostsに同じipのものが溜まっていってるから、成り済ましサーバーじゃねーか?っていう 警告らしいです。 ssh-keygen -R で対象のipをknown_hostsから消せます。