V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
brucmao
V2EX  ›  Windows

vscode remote 连接 windows 提示 no sshd parent proc

  •  
  •   brucmao · 2022-06-01 10:30:06 +08:00 · 1519 次点击
    这是一个创建于 692 天前的主题,其中的信息可能已经有所发展或是发生改变。

    办公室和家里都是 win11,用 vscode remote 报错

    no sshd parent proc

    家里有公网 IP ,用了这个项目 https://github.com/linpinger/reverse-ssh 家里开启

    reverse-ssh -l :31337

    现在办公室 powershell 可以用 ssh -p 31337 nas.mydomain.com

    连接 terminal,想用 vscode 连接就不行

    网上搜了下好像是管理员权限相关?目前家里和办公室登录用户都是用的微软账户

    https://github.com/microsoft/vscode-remote-release/issues/2648

    第 1 条附言  ·  2022-06-01 15:30:03 +08:00
    换 win11 自带的 OpenSSH Server 可以了,原来 win11 只安装了 ssh client, ssh server 默认没有安装,需要
    打开设置->应用->可选应用->添加可选功能 搜索 ssh 安装 openssh server

    https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
    2 条回复    2022-06-01 12:46:08 +08:00
    clorischan
        1
    clorischan  
       2022-06-01 12:11:23 +08:00   ❤️ 1
    用的 Windows 自带的 OpenSSH Server
    终端跟 VSCode Remote SSH 都正常连接使用
    没发现问题
    xyfan
        2
    xyfan  
       2022-06-01 12:46:08 +08:00   ❤️ 1
    还是用微软自己适配的 SSH Server 吧,即使是微软适配的还存在权限相关的 bug 呢,这种个人的有问题也很正常。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1015 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:44 · PVG 04:44 · LAX 13:44 · JFK 16:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.