Daichong'blog

[命令行报错提示]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ 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

SHA256:Qv4XPuXFuO1G8s0teCXRANvVnZy1jjIFKkp8yfJgLeA.

Please contact your system administrator.

Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /c/Users/Administrator/.ssh/known_hosts:3

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

Host key verification failed.

对于一个小白来说,这个是完全看不懂的,下面就告诉大家如何解决这个问题。

首先用ssh第一次连接sever,sever会生成一个公钥和一个私钥,私钥存在连接方的本地,系统重装后sever会重新生成一个公钥,然后连接方的私钥已经和sever的公钥不匹配,导致报错无法登录。

解决方法:

ssh-keygen -R xx.xx.xx.xx 后面跟ip即可删除指定服务器的公钥文件,再次连接时重新生成,并覆盖掉连接方的私钥。

d[e].scale += .004, d[e].alpha -= .013, d[e].el.style.cssText = "left:" + d[e].x + "px;top:" + d[e].y + "px;opacity:" + d[e].alpha + ";transform:scale(" + d[e].scale + "," + d[e].scale + ") rotate(45deg);background:" + d[e].color + ";z-index:99999"); requestAnimationFrame(r) } function o() { var t = "function" == typeof e.onclick && e.onclick; e.onclick = function(e) { t && t(), i(e) } } function i(e) { var a = t.createElement("div"); a.className = "heart", d.push({ el: a, x: e.clientX - 5, y: e.clientY - 5, scale: 1, alpha: 1, color: s() }), t.body.appendChild(a) } function c(e) { var a = t.createElement("style"); a.type = "text/css"; try { a.appendChild(t.createTextNode(e)) } catch (t) { a.styleSheet.cssText = e } t.getElementsByTagName("head")[0].appendChild(a) } function s() { return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")" } var d = []; e.requestAnimationFrame = function() { return e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function(e) { setTimeout(e, 1e3 / 60) } }(), n() }(window, document); (function() { var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); var dictum_arr = ['人生就像风筝,必须迎风而上!', '物欲横流的社会,人心冷漠无情。', '来句评论再走吧!总要留下点什么。']; var dictum_index = Math.floor(Math.random() * dictum_arr.length + 1); let i = 0; let timer = null; let str = dictum_arr[dictum_index]; function typing(){ if (i <= str.length) { $('.widget.plain .content.pure p').html(str.slice(0, i++) + '_') timer = setTimeout('typing()', 150) } else { $('.widget.plain .content.pure p').html(str) clearTimeout(timer) } } typing();