V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fetich
V2EX  ›  问与答

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

  •  
  •   fetich · 2021-11-30 17:49:09 +08:00 · 717 次点击
    这是一个创建于 870 天前的主题,其中的信息可能已经有所发展或是发生改变。

    仅仅是登录,后续很流畅

    每次登录都能重现

    -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
    

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

    第 1 条附言  ·  2021-12-01 09:10:08 +08:00
    以 pledge: network 为关键字,检索了部分资料,发觉不是 noDNS 的问题,不是 GSSAPI ,不是 Motd ,不是 PAM ,也不是 /var/log/btmp 的内容太大

    在新增一条 iptables -A INPUT -i lo -j ACCEPT 后,问题消失了。
    (我的 iptables filter 表 INPUT 链的默认策略是 DROP )
    1 条回复    2021-11-30 20:20:06 +08:00
    neiltroyer849
        1
    neiltroyer849  
       2021-11-30 20:20:06 +08:00   ❤️ 1
    不会是因为开了 DNS 验证的关系?试着 /etc/ssh/sshd_config UseDNS 改为 no 看看;再不行看看 gssapi 认证关掉也看看,但后者貌似更多是跟开了图形界面有关的样子
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:31 · PVG 15:31 · LAX 00:31 · JFK 03:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.