windows7 vscode romte ssh 报错解决

date
Jul 11, 2022
tags
常识
type
Post
status
Published
Last edited time
Sep 14, 2022 02:44 AM

背景

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
解压之后, 在vscode中配置
notion image

© JimYan 2023 - 2025