Passion

ssh 에서 key 검사 pass

sunshout 2014. 8. 5. 08:34

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

66:e1:30:1c:29:6c:74:9b:ab:69:0e:67:e1:bf:04:e6.

Please contact your system administrator.

Add correct host key in /home/son/.ssh/known_hosts to get rid of this message.

Offending RSA key in /home/son/.ssh/known_hosts:60

  remove with: ssh-keygen -f "/home/son/.ssh/known_hosts" -R 192.168.1.237

Password authentication is disabled to avoid man-in-the-middle attacks.

Keyboard-interactive authentication is disabled to avoid man-in-the-middle attac                                                    ks.

X11 forwarding is disabled to avoid man-in-the-middle attacks.

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

son@gateway-m:~$ ssh-keygen -f "/home/son/.ssh/known_hosts" -R 192.168.1.237

# Host 192.168.1.237 found: line 60 type RSA

/home/son/.ssh/known_hosts updated.

Original contents retained as /home/son/.ssh/known_hosts.old


ssh 에서 known host가 틀리면 위와 같은 에러가 발생한다.

이를 pass 하고 싶으면
edit /etc/ssh/ssh_config 파일에 아래와 같으 UserKnownHostsFile=/dev/null 을 추가하면 된다.

Host 192.168.0.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null