ssh密钥修改工作记录20130608

suse-linux:~/.ssh # ssh 192.168.1.212

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

@    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

cd:17:7a:35:8b:8e:95:1d:37:4b:40:0c:a0:a8:ae:0c.

Please contact your system administrator.

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

Offending RSA key in /root/.ssh/known_hosts:3

You can use following command to remove all keys for this IP:

ssh-keygen -R 192.168.1.212 -f /root/.ssh/known_hosts

RSA host key for 192.168.1.212 has changed and you have requested strict checking.

Host key verification failed.

suse-linux:~/.ssh #


按照提示,重新建立连接


suse-linux:~/.ssh # ssh-keygen -R 192.168.1.212 -f /root/.ssh/known_hosts

/root/.ssh/known_hosts updated.

Original contents retained as /root/.ssh/known_hosts.old

suse-linux:~/.ssh #

suse-linux:~/.ssh # ssh 192.168.1.212

The authenticity of host '192.168.1.212 (192.168.1.212)' can't be established.

RSA key fingerprint is cd:17:7a:35:8b:8e:95:1d:37:4b:40:0c:a0:a8:ae:0c.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.1.212' (RSA) to the list of known hosts.

[email protected]'s password:

Last login: Fri Jun  7 18:10:54 2013 from 192.168.1.6

[root@linux-212 ~]#

搞定

你可能感兴趣的:(ssh)