Install
openclaw skills install ssh-config-managerCLI tool to manage SSH config files, organize hosts, generate configs, and test connections.
openclaw skills install ssh-config-managerA CLI tool to manage SSH configuration files (~/.ssh/config). It helps you organize SSH hosts, generate configurations, test connections, and keep your SSH config clean and maintainable.
Key features:
~/.ssh/config file has become messy with dozens of hostsBasic commands:
# List all hosts in your SSH config
python3 scripts/main.py list
# Add a new host
python3 scripts/main.py add --host myserver --hostname 192.168.1.100 --user admin
# Test SSH connection to a host
python3 scripts/main.py test --host myserver
# Organize hosts by tags
python3 scripts/main.py organize --tag work --hosts server1,server2,server3
# Generate SSH config from YAML template
python3 scripts/main.py generate --template servers.yaml --output ~/.ssh/config
# Validate SSH config syntax
python3 scripts/main.py validate --file ~/.ssh/config
python3 scripts/main.py list --format table
Output:
┌─────────────────┬──────────────────────┬───────────┬───────────────┐
│ Host │ Hostname │ User │ Tags │
├─────────────────┼──────────────────────┼───────────┼───────────────┤
│ github │ github.com │ git │ git │
│ work-server │ 192.168.1.100 │ admin │ work,prod │
│ staging │ staging.example.com │ deploy │ work,staging │
│ personal-vps │ 45.33.22.11 │ root │ personal │
└─────────────────┴──────────────────────┴───────────┴───────────────┘
python3 scripts/main.py add \
--host new-server \
--hostname server.example.com \
--user ec2-user \
--port 2222 \
--identity ~/.ssh/id_rsa \
--tag "aws,production" \
--description "Production web server"
python3 scripts/main.py test --hosts work-server,staging,personal-vps
Output:
Testing SSH connections...
✅ work-server (192.168.1.100): Connected successfully
✅ staging (staging.example.com): Connected successfully
❌ personal-vps (45.33.22.11): Connection timeout
# servers.yaml
hosts:
web-prod:
hostname: web.example.com
user: deploy
port: 22
identityfile: ~/.ssh/deploy_key
tags: [web, production]
db-backup:
hostname: db-backup.internal
user: backup
port: 2222
proxycommand: "ssh -W %h:%p bastion"
tags: [database, backup]
python3 scripts/main.py generate --template servers.yaml --output ~/.ssh/config
ssh command available in PATH)~/.ssh/config (or specified config file)