V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
keepRun
V2EX  ›  问与答

[求助] 我更新 win11 后,使用 wsl 时关闭微软的终端(terminal)会导致 SSH 关闭, xshell 断开

  •  
  •   keepRun · Aug 8, 2023 · 1233 views
    This topic created in 1000 days ago, the information mentioned may be changed or developed.

    系统:Win11 22H2 WSL2:Ubuntu 22.04.2 LTS 原先用 win10 时没有这个问题,现在更新到 win11 就有这个问题,不知道咋回事,微软官方有个应用:终端( terminal ),我自己更习惯用 xshell ,结果把 terminal 的所有页面关闭 xshell 就连不上 wsl 内的 ssh ,再打开终端( terminal ),嘿!又可以连上了。 似乎 win 系统会检测 terminal 如果被关闭就把 ssh 连接关闭,我设置的 wsl 内的 ssh 端口是 5033 ,不知道为啥会这样

    3 replies    2024-06-21 16:23:49 +08:00
    kokutou
        1
    kokutou  
       Aug 8, 2023 via Android
    设置 wsl 运行模式
    keepRun
        2
    keepRun  
    OP
       Aug 8, 2023
    @kokutou 怎么设置
    huoya123
        3
    huoya123  
       Jun 21, 2024
    用命令行启动 wsl --exec dbus-launch true
    参考 https://www.liesauer.net/blog/post/899.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2435 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:57 · PVG 09:57 · LAX 18:57 · JFK 21:57
    ♥ Do have faith in what you're doing.