linux_ssh_config_generator
Generate OpenSSH client (~/.ssh/config) and server (sshd_config) configuration text from structured host and daemon definitions. Supports custom settings, presets, and security warnings for weak options.
Instructions
SSH Config Generator. Generate an OpenSSH client config (~/.ssh/config) and/or server config (/etc/ssh/sshd_config) as text from structured host and daemon definitions. It only BUILDS the config text — it never writes ~/.ssh/config or sshd_config, edits a file, connects to any host, or touches the SSH agent. "operation" selects the mode: "generate" (default) renders config from "input"; "presets" returns ready-made example requests (Mozilla-hardened server, bastion, jump-host client, LAN, CIS Level 2, dev). For generate, "input.mode" picks which sides to emit. Client Host blocks support HostName, User, Port, IdentityFile, ProxyJump (bastion/jump host), ForwardAgent, LocalForward, and ControlMaster multiplexing; server settings cover Port, PermitRootLogin, password/pubkey auth, Allow/Deny users and groups, forwarding, idle timeouts, MaxAuthTries, and Ciphers/KexAlgorithms/ MACs — emitting security warnings for weak choices. Use this for OpenSSH connection and daemon config; use linux_web_server_config_generato
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | No | Mode selector. "generate" builds config from "input"; "presets" ignores "input" and returns example requests. | generate |
| input | No | Required when operation=generate. May also be supplied bare (its fields at the top level alongside operation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on a 200 response. | |
| operation | No | The operation echoed back (generate or presets). | |
| result | No | For generate, the generated config and analysis. For presets, a "presets" array of example requests. |