Komari 一键禁用远程ssh权限的命令是啥

qwe7758521 2026-06-30 11:39 1

我记得前两天你有个大佬发过的

最新回复 (8)
  • Wyatt仲 06-30 11:40
    1

    grep -q -- '--disable-web-ssh' /etc/systemd/system/komari-agent.service || (sed -i '/^ExecStart=/ s/$/ --disable-web-ssh/' /etc/systemd/system/komari-agent.service && systemctl daemon-reload && systemctl restart komari-agent)

  • ZFXing 06-30 11:40
    2

    你重新再面板倒一下就可以了,勾选一下禁止web ssh

  • whitewayne0527- 06-30 11:42
    3

    @ZFXing #2 重倒啥意思?重新用命令安装一次?

  • ZFXing 06-30 11:43
    4

    @whitewayne0527- #3 是的

  • aidespiccolo 06-30 11:45
    5

    @whitewayne0527- #3 发布于6/30/2026, 11:42:09 AM

    @ZFXing #2 重倒啥意思?重新用命令安装一次?


    用 1 楼的命令

    在有 webssh 的情况下

    一次性勾选所有服务器执行

    然后就全部都没 webssh 了

    简单利落

  • ZFXing 06-30 11:50
    6

    @aidespiccolo #5 请问下,那个命令直接在探针主程序鸡上面运行吗

  • Esperanto 06-30 11:51
    7

    @ZFXing #6 是的

  • aidespiccolo 06-30 12:02
    8

    @ZFXing #6 发布于6/30/2026, 11:50:04 AM

    @aidespiccolo #5 请问下,那个命令直接在探针主程序鸡上面运行吗


    你的 Komari 后台不有个 “远程执行” 功能么

* 帖子来源NodeSeek
返回