Skip to content
Back to skills

4090ctl

BSecurity

通过 SSH 控制 4090 服务器(192.168.199.17)。

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 7, 2026
securitybashdockerapi

Works with

  • api

Security analysis

B88/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill 4090ctl --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 4090ctl?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 4090ctl
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-4090ctl/badge)](https://www.skillsdirectory.com/skills/modbender-4090ctl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 4090 服务器控制
description: 通过 SSH 控制 4090 服务器(192.168.199.17)。
---

# 4090 服务器控制

通过 SSH 控制 4090 服务器(192.168.199.17)。

## 快速命令

```bash
# Dify 状态检查
ssh -F ~/.ssh/config 4090 "docker ps -a | grep dify"

# 查看资源使用
ssh -F ~/.ssh/config 4090 "docker stats --no-stream"

# 重启 Dify
ssh -F ~/.ssh/config 4090 "cd ~/dify/docker && docker-compose restart"

# 查看日志
ssh -F ~/.ssh/config 4090 "docker logs -f docker-api-1"
```

## 常用操作

### Docker 管理
```bash
# 查看所有容器
docker ps -a

# 查看资源占用
docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemPerc}}'

# 重启单个容器
docker restart docker-api-1

# 查看容器日志
docker logs -f docker-api-1
```

### Dify 服务
| 服务 | 容器名 | 端口 | 说明 |
|------|--------|------|------|
| API | docker-api-1 | 5001 | 主 API |
| Worker | docker-worker-1 | 5001 | 异步任务 |
| Web | docker-web-1 | 3000 | 前端界面 |
| Plugin | docker-plugin_daemon-1 | 5003 | 插件服务 |
| Sandbox | docker-sandbox-1 | - | 安全沙箱 |

### 系统监控
```bash
# CPU/内存
top -bn1 | head -5

# 磁盘使用
df -h

# 负载情况
uptime
```

## SSH 配置

~/.ssh/config:
```
Host 4090
    HostName 192.168.199.17
    User olmmlo
    IdentityFile ~/.ssh/4090_key
    PasswordAuthentication no

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.