码迷,mamicode.com
首页 > 其他好文 > 详细

服务器ssh认证

时间:2015-06-29 17:58:07      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:ssh认证


服务器ssh认证


只需要将服务器上的/etc/ssh目录备份、拷贝即可实现改服务器ip或重装openssh-server、系统重装等而不影响客户端连接


如下面报错就可以规避了


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

@    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 ECDSA key sent by the remote host is

5c:99:a2:08:02:bf:1b:45:37:ce:96:29:da:c2:e3:dd.

Please contact your system administrator.

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

Offending ECDSA key in /root/.ssh/known_hosts:2

  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 10.1.81.116

ECDSA host key for 10.1.81.116 has changed and you have requested strict checking.

Host key verification failed.


本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1669007

服务器ssh认证

标签:ssh认证

原文地址:http://yangzhiming.blog.51cto.com/4849999/1669007

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!