windows7下vscode通过ssh编辑服务器代码的方法

注意:安装之前要安装git或兼容组件,请查看Visual Studio Code Remote Development Troubleshooting Tips and Tricks,文中提到,需要安装Windows的OpenSSH的Client支持,Win10容易装,WIN7下倒是可以用Git for Windows来替代
windows7下vscode通过ssh编辑服务器代码的方法
步骤1:安装组件
windows7下vscode通过ssh编辑服务器代码的方法步骤2:创建远程连接
windows7下vscode通过ssh编辑服务器代码的方法windows7下vscode通过ssh编辑服务器代码的方法
步骤3:连接到远程机器
windows7下vscode通过ssh编辑服务器代码的方法点添加目录的按钮后,出现新的界面,首先需要选择远程服务器的类型,第一次连接的时候需要选择,以后再连接的时候就不必再选择了
windows7下vscode通过ssh编辑服务器代码的方法
然后输入用户密码,回车
windows7下vscode通过ssh编辑服务器代码的方法步骤4:打开相应目录
windows7下vscode通过ssh编辑服务器代码的方法
这样就可以了