vscode 从1.36.1 不支持32位remote 

Visual Studio Code May 2019icon-default.png?t=M3K6https://code.visualstudio.com/updates/v1_35

问题
报错 过程试图写入的管道不存在

原因
本机同时装有openssh和git,这样就会冲突了

解决方法
将openssh卸载了,同时指定vscode的默认ssh命令路径,将下列配置添加到vscode的用户配置的setting.json中

(可以打开命令行,where ssh,很奇怪:cmd只有显示openssh,git命令行下显示git自带的和openssh)

"remote.SSH.path": "C:\\Program Files\\Git\\usr\\bin\\ssh.exe",
"remote.SSH.showLoginTerminal": true, //配置登录的终端

测试出现的问题
ssh: permission denied (publickey)

原因
远程Linux的openssh-server的配置文件问题,我们可以修改/etc/ssh/sshd_config的配置文件,配置密码登录;相关配置修改如下:

PasswordAuthentication yes
PermitRootLogin yes
PubkeyAuthentication no
#AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2

测试
成功啦😱😱😱

原文链接:https://blog.csdn.net/weixin_42100456/article/details/105434869

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐