windows7 vscode romte ssh 报错解决
背景
windows 7 使用 vscode 远程到 windows10 下 wsl 的vscode 远程服务
过程
wsl
windows10
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=[localport] connectaddress=[IP] connectport=[PORT]netsh advfirewall firewall add rule name=WSL2 dir=in action=allow protocol=TCP localport=[localport]IP: wsl 的 ip 地址
PORT: WSL 的
localport宿主机开放的端口
powershell 需要以管理员身份运行
windows7
安装vscode和remote 插件之后连接报错
an ssh installation could not be found需要在本机安装 ssh, 下载地址: https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip
解压之后, 在vscode中配置
