windows中使用vscode的remote-ssh连接linux失败

[14:36:30.830]>Bad owner or permissions onPROGRAMDATA Wssh/ssh config

过程试图写入的管道不存在。
[14:36:31.124]"install"terminal command done
[14:36:31.126]Install terminal quit with output:过程试图写入的管道不存在
[14:36:31.126]Received install output:过程试图写入的管道不存在。
[14:36:31,128]Failed to’parse remote port from server output
14:36:31.1331Resolver error:Error:

问题原因:windows系统自带的ssh工具有问题,可以使用git工具自带的ssh工具,在vscode中替换掉默认的系统ssh工具。

1、下载git工具
https://git-scm.com/download/win/
下载:64-bit Git for Windows Portable.

在Windows的目录下解压(免安装):C:\user1\Programs\PortableGit-2.46.0-64-bit
2、设置vscode
设置vscode的 Remote-SSH:Ctrl + Shift + p
Remote-SSH:Settings
Remote.SSH: Path (Applies to all profiles)
An absolute path to the SSH executable. When empty, it wil use “ssh” on the path or in common install locations.

C:\user1\Programs\PortableGit-2.46.0-64-bit\usr\bin\ssh.exe

3、重启vscode
重新连接远程Linux。

提供一个“vscode 远程 linux(包括离线vscode-server安装,免密登录方法)”
https://blog.youkuaiyun.com/qq_43623902/article/details/136258880

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值