windows使用总结

windows hosts文件

文件位置: C:\Windows\System32\drivers\etc\hosts

raw.githubusercontent.com无法连接时,可以在hosts文件中添加主机IP映射

1
151.101.76.133 raw.githubusercontent.com  # ip地址信息可以通过各种[站长工具网站](https://tool.chinaz.com/)查询

登录虚拟机时提示host key验证失败

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PS C:\Users\xxx> ssh root@192.168.43.129
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:DX2C/kvltG3k9LJpC6Mlz2WPAkcpf5pQaRYyZLkH/3A.
Please contact your system administrator.
Add correct host key in C:\\Users\\xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\xxx/.ssh/known_hosts:7
ECDSA host key for 192.168.43.129 has changed and you have requested strict checking.
Host key verification failed.
PS C:\Users\xxx> ssh-keygen.exe -R 192.168.43.129
# Host 192.168.43.129 found: line 7
C:\Users\xxx/.ssh/known_hosts updated.
Original contents retained as C:\Users\xxx/.ssh/known_hosts.old

windows下docker安装

WSL