vscode 从1.36.1 不支持32位remote
Visual Studio Code May 2019
https://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.youkuaiyun.com/weixin_42100456/article/details/105434869
在使用VSCode 1.36.1进行远程32位开发时遇到问题,由于同时安装了openssh和Git的SSH导致冲突。解决方法是卸载openssh并设置VSCode的SSH路径为Git的SSH命令。在`settings.json`中添加配置 `"remote.SSH.path": "C:\Program Files\Git\usr\bin\ssh.exe"`。此外,若远程Linux服务器出现`permission denied (publickey)`错误,可能需要修改`/etc/ssh/sshd_config`,允许密码和公钥认证。
6579

被折叠的 条评论
为什么被折叠?



