@lmliheng/use-suanjiayun
v0.1.0
Published
Get into a rented suanjiayun GPU container — the console's WebShell or the direct SSH port from the 终端SSH/SFTP连接 panel — around the 2020 menu gateway that authenticates but never attaches, install what the base image is missing, and hand the port-opening
Maintainers
Readme
use-suanjiayun
在算家云(suanjiayun.com)租来的 GPU 容器上接通服务的流程,做成 Adelie 插件。
平台把实例藏在自己的控制台后面:容器端口默认不对外,文档里写的那个
ssh 账号@地域.suanjiayun.com -p 2020 是个菜单网关——密码能过、菜单能列出你的实例,
但选完就再也不回应(实测 xn-a / xn-e 都一样)。这个插件把「哪条路走得通、哪条路别浪费时间」
写清楚,并给出容器里安装、校验、后台常驻、开放端口的固定套路。
安装到 Agent
Adelie → Plugins 插件库 → 从 npm 导入,填包名:
@lmliheng/use-suanjiayun装到某个 Agent 后,它的技能列表里会出现 suanjiayun。
技能做了什么
skills/suanjiayun/:
| 文件 | 用途 |
| --- | --- |
| SKILL.md | 完整流程:认清平台模型 → 选通道 → 体检 → 装东西 → 控制台开放端口 → 验证 |
| reference/pitfalls.md | 逐字证据:网关选实例后的原始字节、端口映射探测表、镜像实测表、WebShell 粘贴问题、sshd 不重读配置 |
| templates/probe-container.sh | 只读体检一行版(含十六进制端口解码,容器里常常没有 ss/netstat) |
| templates/install-adelie.sh | 完整范例:镜像下包 → sha256 校验 → 离线安装 → setsid nohup 起服务 → 自检 |
| templates/password-ssh.py | 没有 sshpass 时用密码 SSH 跑命令(Windows/MSYS 尤其有用),也能开 PTY 驱动交互菜单 |
三条最常踩的
- 别在 2020 网关上耗时间:认证通过 ≠ 能进容器。要直连就向用户要 【终端SSH/SFTP连接】弹窗里的「主机 + 端口」,两项一起要(只给端口号经常对不上主机)。
- 容器里直连 GitHub Releases 会卡:走
https://gh-proxy.com/https://github.com/..., 并一律 sha256 校验后再装。 - 容器端口不会自动对外:最后一步是用户在控制台 实例 →【开放端口】→【对外开放端口】→ 打开开关 →【获取访问地址】(需实名认证)。
许可
Apache-2.0
