Record a problem with the vscode connection virtual machine
There is no problem when using vscode to connect the virtual machine for the first time
when returning to school to use campus network connection, set the virtual machine network to bridge mode
after obtaining IP, an error is reported when using vscode to connect:
The authenticity of host '192.168.1.106 (192.168.1.106)' can't be established.
Tried to use the command and modify the sshconfig file
SSH – O stricthostkeychecking = no 192.168.0.xxx
Stricthostkeychecking no
userknownhostsfile/dev/null
results are not allowed
the final solution is
Add “remote.SSH.Uselocalserver” on the last side: true