Change SSH security settings
vps_set_ssh_securityChange a VPS's SSH hardening in sshd_config over SSH and reload sshd; open sessions stay connected. Pass only the settings to change; at least one. Read the current state with vps_get_ssh_security first. Key exchange and cipher changes are tested with sshd -t and rolled back if the test fails. Before turning passwordAuth off, make sure a key login works (vps_list_ssh_keys, vps_upload_ssh_key); if SSH is already unreachable, use vps_rescue_password_auth instead. Returns the result per setting.
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": {
"id": "<id>"
},
"name": "vps_set_ssh_security"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The VPS ID | |
| sha1Hmac | No | Allow legacy hmac-sha1 MAC algorithms. Keep false unless an old client cannot connect | |
| bannerHidden | No | Hide the Debian/Ubuntu version banner shown before login (DebianBanner no) | |
| passwordAuth | No | Allow password login (PasswordAuthentication). false leaves key login only | |
| legacyCiphers | No | Allow legacy CBC and 3DES ciphers. Keep false unless an old client cannot connect | |
| postQuantumKex | No | Offer post-quantum key exchange sntrup761x25519-sha512. Needs OpenSSH 9.0 or newer (vps_update_openssh) |