VsCode:
版本: 1.43.0 (user setup)
提交: 78a4c91400152c0f27ba4d363eb56d2835f9903a
日期: 2020-03-09T19:47:57.235Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363
SSH:0.49.0(版本0.50.0会出现问题)
首先在vscode中安装插件Remote-SSH
之后配置ssh配置文件:
点击vscode左下角设置–>命令面板–>弹出输入命令框–>选择:Remote SSH: open configure file–>在选择C:\Users用户名.ssh\config,然后修改配置文件:
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host debian
HostName 192.168.32.123
User zha
如果你是使用密码登录的,点击Extensions,搜索SSH,在Remote-SSH的右边点击设置按钮,在Show Login Terminal处打钩
配置秘钥参考:
https://zhuanlan.zhihu.com/p/100759746
https://www.cnblogs.com/llxpbbs/articles/11398512.html