DSH Server Toolbox: Register SSH Hosts in the Sidebar for AI On-Demand Retrieval and Controlled Execution

Preface

When asking a model in DSH to check server status, test connections, or run a remote command, the common practice is to paste the IP, port, and username into the chat every time, often repeating instructions like “do not leak passwords.” Information scattered across memos and terminal history slows down the workflow and increases the risk of accidentally sharing sensitive content.

Below is an introduction to the community plugin DSH Server Toolbox (yu7777777777/dsh-server-toolbox): centrally register SSH servers and deployed service access URLs in the DSH sidebar, with credentials encrypted and saved locally; the model retrieves the inventory via a specialized tool, verifies logins, and remote commands still go through DSH authorization. Register once, and subsequent conversations can use the server name without having to repeat connection details verbally.

What is this

DSH Server Toolbox is released by maintainer yu7777777777, with the current package version 1.5.0 (MIT License). Its positioning is to manage SSH server metadata and service entry URLs within DSH, which supports Cordis plugins and a plugin manager, and to provide AI with entry points such as server_toolbox and server_ssh.

It addresses two categories of problems: “repeated input of connection information” and “passwords being unsuitable for chat history.” Unlike merely describing the host orally in the chat, the host, port, user, notes, and service URLs are stored in a local inventory. Passwords and imported private keys are encrypted using Windows DPAPI (current user) and handed over to the DSH credential service, rather than being returned through standard model tools.

Core Features

According to the project README, verified capabilities include:

  • Server Management: Add, edit, search, and delete; record host, SSH port, user, and notes; optional expiry date (display only, no auto-renewal or blocking connections).
  • Service Entry: Register “Name + Access URL” for each server; click to open from the interface after saving; the URL must start with http:// or https://.
  • Authentication: Default username + password (saved in a dedicated form); also supports SSH Agent, import or paste private key (encrypted locally), and is compatible with the old path method. Current password and encrypted private key saving only support Windows.
  • Connection Verification: Get the host’s SHA256 fingerprint; it must be verified against an independent trusted channel before trusting. “Test SSH Login” only verifies authentication and does not execute remote commands.
  • Remote Command & Approval: Executing remote commands requires DSH authorization; you can select “Ask every time (default)” or “Follow session permissions” in the plugin “Settings” (boundaries see below).
  • AI Invocation: Retrieve servers and service URLs via server_toolbox; test connections or execute approved commands via server_ssh.

Installation and Enabling

Requires DSH that already supports Cordis plugins and a plugin manager. Installation runs third-party plugin code; please only install from sources you trust.

In DSH, you can send:

请通过插件管理器安装这个服务器工具箱插件:
https://github.com/yu7777777777/dsh-server-toolbox

In a plugin manager that supports installing external packages, you can also use:

github:yu7777777777/dsh-server-toolbox

After installation, follow the plugin manager prompt to refresh the page or restart DSH, and open the sidebar “Server Toolbox.” Installing via the GitHub address requires available Git and a network connection; private repositories require corresponding access permissions. Please refer to the installation result for the plugin manager entry point and compatibility with different DSH versions.

Typical Usage

Registering Servers and Services

  1. Click “Add Server,” fill in the server name, host/IP, SSH user, port, and authentication method (see README field examples).
  2. The login password is only filled in the plugin’s dedicated input box; when editing, leaving the password box empty means retaining the saved password.
  3. Add entries in “Deployed Services”: Name + Service URL (do not enter account, password, or token in the link).

When selecting “Private Key (Import or Paste)” for key authentication, the file content—not the path—is imported; it must be a private key without an additional passphrase, with a maximum size of 32 KiB. After successful saving, moving or deleting the original file does not affect the imported connection.

Fingerprint and Login Test

  1. Click “Get Host Fingerprint.”
  2. Verify the complete SHA256 fingerprint through the console or an independent channel provided by the administrator.
  3. After confirming the host, port, and fingerprint are consistent, check the box to confirm and save the trust.
  4. Click “Test SSH Login.”

You cannot simply trust the fingerprint just because it is displayed on the page. If the fingerprint changes, you should first verify whether it was caused by a reinstall, a key replacement, or connecting to the wrong host.

Remote Command Approval

In “Settings” above the server list, you can choose:

Option Behavior
每次执行都询问(默认) Request DSH authorization for each remote command request
跟随会话权限 Directly execute only when the session is “Full Access” and approval is closed; otherwise, authorization is still required

Even if the session policy allows it, remote commands will not be executed if the fingerprint is not confirmed or if the password/private key is not saved. Tool results will be annotated with approvedBy: per-call or session-policy.

Invoking in Conversation

After registration is complete, you can use similar expressions for DSH (whether to execute depends on the session tool configuration, connection status, and authorization result):

列出我登记的服务器,以及各自的服务网址。
测试“我的服务器”的 SSH 登录,不要执行远程命令。
查看“我的服务器”的磁盘使用情况,执行前向我请求授权。

Use Cases and Notes

Who is this for: Users who frequently let AI assist with operations and maintenance (O&M) in DSH, need to reference multiple SSH hosts by name, and wish to manage service URLs and host information on the same screen (password/import private key functionality depends on Windows DPAPI).

Storage and Security Boundaries (Key points from the original README):

  • Server names, addresses, usernames, and service URLs are saved locally in data/servers.json, which is not encrypted data; passwords are saved by the credential service after being encrypted via DPAPI.
  • High-privilege programs under the same Windows user may still be able to access runtime secrets; after migrating computers or switching Windows users, you need to re-enter passwords or re-import private keys.
  • Remote execution requires authorization every time; OTP/MFA, encrypted private key passphrases, etc. currently lack full interactive support; fingerprint trust and system known_hosts are independent.
  • The plugin runs with the current DSH process permissions; it is recommended to check the GitHub repository source code and MIT license before installing, and do not commit servers.json, credentials, or private keys to the version control repository.

The community plugin directory SkillHub Plugin Page and DeepSeek / HF have no official affiliation; the DSH ecosystem follows the “everything is a plugin” extension model.

Conclusion

DSH Server Toolbox converges SSH inventories, service entries, and locally encrypted credentials into the sidebar, allowing the conversation side to use names to retrieve and control SSH rather than repeatedly pasting connection information. When you need to install or check for updates, you can use the directory page https://www.skillhub.cn/plugins/yu7777777777/dsh-server-toolbox and the source code repository https://github.com/yu7777777777/dsh-server-toolbox.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye