Introduction¶
When developing with DeepSeek Harness (DSH), if your Aliyun ECS is a “start-on-demand” pay-as-you-go instance, connecting to the server often requires logging into the console to click start, waiting for the status to change to running, copying the public IP, and finally re-typing ssh -i ... locally. These steps are fragmented from the conversational flow within DSH. The community plugin dsh-aliyun-ecs-connect (Maintainer: SepTem61r, Category: Networking Tool) integrates machine startup, current public IP retrieval, and opening a configured SSH terminal into DSH’s slash commands and natural language tool calls. The following sections introduce what it does, how to install it, and how to configure it.
What is this¶
dsh-aliyun-ecs-connect is a bundle plugin for DSH. It manages a specified instance via the Aliyun ECS OpenAPI (DescribeInstances, StartInstance, StopInstance) and executes SSH via the local terminal once the instance is ready. The plugin code does not hardcode your account information; the Instance ID, Region ID, and private key path are written in a JSON file in the user directory, while AccessKeys are stored separately. The README specifies the platform as Windows, with 0 dependencies (using only Node built-in modules at runtime), and an MIT license. The current version in package.json is 0.3.0.
Directory Page: SkillHub Plugin Page
Source Code: GitHub — SepTem61r/dsh-aliyun-ecs-connect
Core Features¶
When executing /connect, the plugin checks the instance status and public IP. If the instance is stopped, it calls the startup API, polls at the configured interval until the status is running and an IP is available, waits for the SSH port to become accessible, and then delivers the terminal according to the terminal setting (default auto prioritizes Windows Terminal). If /connect is executed while the instance is already running, it will not restart the machine; it will only retrieve the IP and open the terminal.
| Entry | Function |
|---|---|
/connect |
Start on demand → Get IP → Wait for SSH → Open or display connection method |
/ecs-status |
View status and public IP only; will not start the instance |
/ecs-stop |
Stop the instance (pay-as-you-go instances can use Stopped Mode to save costs, see README “Costs and Saving Money”) |
| Natural Language | e.g., “Help me connect to the server,” AI can call the ecs_connect tool |
autoConnect |
When configured as true, automatically connects after DSH starts; default is false |
The public IP is queried every time, without relying on a fixed Elastic IP; the README contains a separate explanation on “Why an Elastic Public IP is not required.”
Installation and Activation¶
First, ensure you can manually SSH into the target instance from your local machine (username, .pem file, Security Group port 22), and prepare a RAM sub-account AccessKey (do not use the main account key; the policy only requires search/start/stop permissions for the specific instance. See README “Preparation” for details).
1. Install DSH
Node.js 20 or higher is required. In PowerShell:
npx @deepseek-ai/dsh@latest web
Open the address indicated in the command prompt in your browser (usually http://127.0.0.1:3080).
2. Obtain the Plugin Directory
The README recommends placing the repository in a local directory (example path D:\dsh-aliyun-ecs-connect):
git clone https://github.com/SepTem61r/dsh-aliyun-ecs-connect.git D:\dsh-aliyun-ecs-connect
3. Install the Bundle
Send the following in the DSH chat box (to let the AI call the plugin manager to install it to the current profile):
Help me install the directory `D:\dsh-aliyun-ecs-connect` as a plugin to the current profile, and let me know when it is done.
You can also use install_bundle within DSH’s plugin manager pointing to the same directory. If prompted for pnpm, you can run npm install -g pnpm and retry; pnpm is only required during installation.
4. Write Configuration and Restart DSH
Create two JSON files in the user directory (backslashes in paths must be written as \\ in JSON):
%USERPROFILE%\.dsh\aliyun-ecs-settings.json — Instance and SSH:
{
"regionId": "cn-hongkong",
"instanceId": "i-your-instance-id",
"sshUser": "root",
"identityFile": "D:\\path\\to\\your-key.pem",
"sshPort": 22,
"terminal": "auto",
"autoConnect": false
}
%USERPROFILE%\.dsh\aliyun-ecs.json — API Credentials:
{ "accessKeyId": "LTAIyourID", "accessKeySecret": "yourSecret" }
Environment variables ALIYUN_ACCESS_KEY_ID / ALIYUN_ACCESS_KEY_SECRET can also be used (they take precedence). You must restart DSH after modifying the configuration (the plugin and configuration are read at startup).
If you can see connect, ecs-status, and ecs-stop after typing /, the installation was successful.
Typical Usage¶
Check status only first to avoid accidental startup:
/ecs-status
When you need to connect to the server:
/connect
On success, the README example shows: DSH displays the instance as Running, the public IP, and the equivalent ssh -i ... command, and a Windows Terminal window pops up already connected.
Stop the instance:
/ecs-stop
For more fields (startTimeoutMs, pollIntervalMs, sshReadyTimeoutMs, terminal values wt / cmd / dsh / none, etc.), see the “Writing the Two Configuration Files” table in the README.
Applicable Scenarios and Notes¶
Suitable for users on Windows who own a single (or policy-restricted) pay-as-you-go ECS and are accustomed to the “shut down to save money, turn on when needed” workflow; students are described as a typical audience in the README, but anyone meeting the above conditions can use it.
Before installation, you should read the source code and the MIT license on GitHub, and understand that the plugin runs with the permissions of the current DSH process: AccessKeys and private key paths reside in the local %USERPROFILE%\.dsh\. You must manage RAM least-privilege and file permissions yourself (see README “Security Notice,” optional icacls to tighten key file permissions). The community directory SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer; plugin star counts and other data are subject to the repository page.
For troubleshooting and FAQs (such as Forbidden.RAM, path escaping, terminal not popping up), see the README “Troubleshooting Manual” and “FAQ.”
Conclusion¶
dsh-aliyun-ecs-connect consolidates “Console Startup + Copy IP + Assemble SSH” into a /connect or a single sentence within DSH, making daily connections to pay-as-you-go ECS much closer to the workflow within the Harness. For further information:
- Directory Page: https://www.skillhub.cn/plugins/SepTem61r/dsh-aliyun-ecs-connect
- GitHub: https://github.com/SepTem61r/dsh-aliyun-ecs-connect