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

树莓派在 Raspberry OS Bullseye 下 ssh 登录很慢

  •  
  •   fetich · Nov 30, 2021 · 1069 views
    This topic created in 1621 days ago, the information mentioned may be changed or developed.

    仅仅是登录,后续很流畅

    每次登录都能重现

    -v 后发现在

    debug1: channel 0: new [client-session]
    debug1: Requesting [email protected]
    debug1: Entering interactive session.
    debug1: pledge: network
    debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
    debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
    

    在第六行暂停了许久,请问大家大概是什么原因导致的?

    Supplement 1  ·  Dec 1, 2021
    以 pledge: network 为关键字,检索了部分资料,发觉不是 noDNS 的问题,不是 GSSAPI ,不是 Motd ,不是 PAM ,也不是 /var/log/btmp 的内容太大

    在新增一条 iptables -A INPUT -i lo -j ACCEPT 后,问题消失了。
    (我的 iptables filter 表 INPUT 链的默认策略是 DROP )
    1 replies    2021-11-30 20:20:06 +08:00
    neiltroyer849
        1
    neiltroyer849  
       Nov 30, 2021   ❤️ 1
    不会是因为开了 DNS 验证的关系?试着 /etc/ssh/sshd_config UseDNS 改为 no 看看;再不行看看 gssapi 认证关掉也看看,但后者貌似更多是跟开了图形界面有关的样子
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2933 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    ♥ Do have faith in what you're doing.