harden_ssh
Apply SSH hardening best practices: disable root login and password authentication, and set maximum authentication attempts. Requires existing key-based access.
Instructions
Apply SSH hardening best practices via a drop-in file: disable root login, disable password auth, set MaxAuthTries. IMPORTANT: ensure you have key-based auth working before running this.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alias": "<alias>"
},
"name": "harden_ssh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| maxAuthTries | No | ||
| sudo_password | No | ||
| disableRootLogin | No | ||
| disablePasswordAuth | No |