1.vscode 下安装Remote ssh插件。 2.在windows下 cmd 输入 ssh-keygen -R IP(服务器IP) 例如: ssh-keygen -R 192.168.1.110 再次执行连接即可。