seudut/dsh-remote-sudo ↗★ 0

dsh-remote-sudo

支持在输入框请求sudo密码并执行远程root命令。 适合通过SSH执行远程sudo命令的用户;密码在输入面板填写,不写入对话记录,需先配置密钥登录。

包名
dsh-remote-sudo
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:seudut/dsh-remote-sudo

配置

config:
  passwordTtlMs: 0   # 0 = 每次都要密码;正整数 = 内存缓存毫秒数
键默认说明
passwordTtlMs00 = 每次都要密码;正整数 = 密码在宿主内存保留的毫秒数

使用

让 agent 调用 remote_sudo:

用 remote_sudo 在 aliyun 上执行 apt-get update

参数必填说明
host是~/.ssh/config 别名
command是远端 root 命令
description否面板里的短标签

需要密码时弹面板;passwordTtlMs 内不重复弹;取消/停止会结束调用。

Configuration

config:
  passwordTtlMs: 0   # 0 = ask every call; positive = in-memory TTL in ms
KeyDefaultMeaning
passwordTtlMs00 asks every call; a positive value is the in-memory password TTL in milliseconds

Usage

Ask the agent to call remote_sudo:

Use remote_sudo to run apt-get update on aliyun

ArgumentRequiredMeaning
hostyesSSH alias from ~/.ssh/config
commandyesroot command to run remotely
descriptionnoshort label shown in the panel

The panel appears when a password is needed; within passwordTtlMs it does not ask again. Cancel/stop ends the call.