本文へ移動
cccskills
無料GitHub で公開

ssh-manager

SSH hosts: add, list, exec, exec-all, scp, health-check.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

SSH Remote Manager

Multi-Host-Verwaltung mit SSH + scp + Ping-Health-Check + paralleler Ausführung.

Installation

Das Skript liegt unter ~/scripts/ssh-manager.py. Ein Batch-Wrapper ~/scripts/ssh-manager.bat erlaubt den Aufruf von überall (wenn ~/scripts/ im PATH).

# Alias einrichten (optional)
echo 'alias sshm="python ~/scripts/ssh-manager.py"' >> ~/.bashrc
source ~/.bashrc

CLI-Kommandos

KommandoBeschreibung
--add NAME user@host:portHost hinzufügen (optional --key ~/.ssh/id_rsa)
--listAlle Hosts mit Ping-Status auflisten
--exec HOST 'command'Befehl auf einem Host via SSH ausführen
--exec-all 'command'Befehl auf ALLEN Hosts parallel ausführen
--fetch HOST remote localDatei von Host holen (scp)
--push HOST local remoteDatei zu Host senden (scp)
--checkHealth-Check (Ping aller Hosts)
--check --jsonHealth-Check mit JSON-Ausgabe

Exit-Codes

  • 0: Alle Hosts OK
  • 1: Teilweise Fehler
  • 2: Alle Hosts offline/tot

Konfiguration

Hosts werden in ~/.ssh-manager/hosts.json gespeichert:

[
  {
    "name": "webserver",
    "host": "192.168.1.100",
    "port": 22,
    "user": "root",
    "key_path": "/c/Users/damir/.ssh/id_rsa"
  }
]

Health-Check Cron

Ein Cron-Job läuft alle 30 Minuten und speichert Reports unter ~/.ssh-manager/health_*.json. Der aktuelle Report liegt in ~/.ssh-manager/health_latest.json.

Sicherheit

  • Nur SSH-Key-Authentifizierung (BatchMode=yes)
  • Keine Passwörter in der Konfiguration
  • Host-Key-Verifikation via StrictHostKeyChecking=accept-new
  • Timeout nach 10s Connect / 120s Exec

Beispiele

# Host hinzufügen
python ~/scripts/ssh-manager.py --add web1 root@192.168.1.10:22

# Host mit key hinzufügen
python ~/scripts/ssh-manager.py --add db1 admin@db.internal:2222 --key ~/.ssh/db_key

# Alle Hosts anzeigen
python ~/scripts/ssh-manager.py --list

# Befehl auf einem Host ausführen
python ~/scripts/ssh-manager.py --exec web1 'uptime && free -h'

# Befehl auf allen Hosts parallel
python ~/scripts/ssh-manager.py --exec-all 'df -h /'

# Datei vom Host holen
python ~/scripts/ssh-manager.py --fetch web1 /var/log/nginx/access.log ./access.log

# Datei zum Host senden
python ~/scripts/ssh-manager.py --push web1 ./nginx.conf /etc/nginx/nginx.conf

# Health-Check
python ~/scripts/ssh-manager.py --check

Verwendung in OpenAmer

Lade das Skill und führe die gewünschten Aktionen aus:

# Host hinzufügen
Execute python scripts/ssh-manager.py --add web1 root@10.0.0.50

# Status abfragen
Execute python scripts/ssh-manager.py --check

# Parallel Befehl ausführen
Execute python scripts/ssh-manager.py --exec-all 'systemctl status nginx'

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Build integrated IS/BS/CF financial workbooks in Excel.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

a2a-swarm

無料

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

Use for A/B experiments on OpenAmer configs and skills.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

Roleplay a hostile user to find and triage UX pain points.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

日本語の概要は準備中です。原文の説明を表示しています。

openamer/openamer52026年10月11日 更新

openamer のスキルをすべて見る

このスキルの問題を報告する