Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更改端口报错 #4

Open
qingguoguo opened this issue Sep 6, 2019 · 1 comment
Open

更改端口报错 #4

qingguoguo opened this issue Sep 6, 2019 · 1 comment

Comments

@qingguoguo
Copy link

@DESKTOP-E292LO1:/mnt/c/Users/qingguoguo$ ssh localhost -p 23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:5FUfal0zhTGixCtIGH9k8xisy1geGehpGQCyflugwII.
Please contact your system administrator.
Add correct host key in /home/qgglinux/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/qgglinux/.ssh/known_hosts:1
remove with:
ssh-keygen -f "/home/qgglinux/.ssh/known_hosts" -R "[localhost]:23"
ECDSA host key for [localhost]:23 has changed and you have requested strict checking.
Host key verification failed.

@iWangJiaxiang
Copy link
Owner

按照您提供的输出来看,可以在WSL里执行以下命令清除已有的host key信息,然后下一次登陆时可重新添加host key信息。

ssh-keygen -f "/home/qgglinux/.ssh/known_hosts" -R "[localhost]:23"

或者,可以禁用host key检查。(不推荐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants