Skip to content
cccskills
FreePublished on GitHub

ssh-manager

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md3.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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'

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

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.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

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

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

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

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

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

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

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

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

See all skills by openamer

Report a problem with this skill