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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending key in /home/user/.ssh/known_hosts:4
RSA host key for domain.com has changed and you have requested strict checking.
Host key verification failed.
해결방법은 아래의 명령어로 해결이 된다. (example.com을 타겟주소로 바꾸자)
perl -p -i -e 's/^example.com.*n//;' ~/.ssh/known_hosts
'Development > Web & Server' 카테고리의 다른 글
이것은 보통 파일의 퍼미션이 서로 다르기 때문입니다.: (0) | 2015.07.24 |
---|---|
EC2에 wordpress 설치하기!! (0) | 2015.07.22 |
typesafe activator 삭제하기 (0) | 2015.07.18 |
[Play Framework2] Json polymorphism (0) | 2015.06.17 |
[Play Framework2] JPA & Json model (0) | 2015.06.11 |