brucmao
V2EX  ›  Windows

vscode remote 连接 windows 提示 no sshd parent proc

  •  
  •   brucmao · Jun 1, 2022 · 2549 views
  •   You need to sign in to view this topic
    This topic created in 1508 days ago, the information mentioned may be changed or developed.

    办公室和家里都是 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

    Supplement 1  ·  Jun 1, 2022
    换 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 replies    2022-06-01 12:46:08 +08:00
    clorischan
        1
    clorischan  
       Jun 1, 2022   ❤️ 2
    用的 Windows 自带的 OpenSSH Server
    终端跟 VSCode Remote SSH 都正常连接使用
    没发现问题
    xyfan
        2
    xyfan  
       Jun 1, 2022   ❤️ 1
    还是用微软自己适配的 SSH Server 吧,即使是微软适配的还存在权限相关的 bug 呢,这种个人的有问题也很正常。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1248 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:27 · PVG 01:27 · LAX 10:27 · JFK 13:27
    ♥ Do have faith in what you're doing.