使用vscode访问和修改远程计算机文件
使用vscode访问和修改远程文件,分三步实现:在远程linux机器上安装rmate;在本地windows上安装openssh;在vscode中安装扩展remote vscode。 1、 在远程linux机器上安装rmate rmate有很多中语言版本,这里用的是python的版本。github地址:https://github.com/sclukey/rmate-python 下载安装比较简单,在linux中执行以下命令即可 wget https://raw.githubusercontent.com/sclukey/rmate-python/master/bin/rmate chmod +x ./rmate mv ./rmate /usr/local/bin/rmate 2、在本地window中安装openssh github地址:https://github.com/openssl/openssl/blob/master/INSTALL 这个是需要自己编译的,推荐直接利用window版的安装包:https://www.mls-software.com/opensshd.html 推荐使用exe版本。如果下载的是免安装的版本,需要在windows设置一下环境变量,到解压后的bin目录。安装完成运行ssh命令会有以下提示: 可以直接运行 ssh-keygen -t rsa