1. SSH
安装兼容 OpenSSH 的 SSH 客户端Windows, 安装 Git for Windows 便可,https://git-scm.com/download/win
win安装ssh服务端 freesshd
https://blog.csdn.net/qq_36249516/article/details/77987144?utm_source=blogxgwz9
2.插件
Remote Development扩展,只用安装这个插件,其余的依赖包会自动下载。python
打开命令行,并输入 ssh 字样,按照下图中第二步选择 Remote-SSH:Connet to Host...
输入链接到远程主机的用户名和 ip linux
链接成功后会另外再打开一个新的窗口 git
打开后,visual studio code会自动在远程PC上,安装配置服务器
要root权限ssh
2、保存常常链接的主机信息
Host root@192.168.1.100 #由于bug HOST必须这样写
User root
HostName 192.168.1.100
# Port 自定义端口22ide
Host example-remote-linux-machine-with-identity-file
User your-user-name-on-host
HostName another-host-fqdn-or-ip-goes-here
IdentityFile ~/.ssh/id_rsa-remote-sshspa
再次打开远程链接到远程主机
.net
以前在 SSH 配置文件中配置过的主机会出如今主机列表中
选择相应的主机便可再次链接到远程主机插件
以python为例命令行
3、
新建文件保存到
或者打开远程文件夹
5、调试
由于python最简单,直接点调试就能够了