save_server
Create or update SSH server connection profiles to avoid re-entering credentials. Store authentication details like host, user, password or private key for reliable remote access.
Instructions
Persist (create or update) a server connection profile in the local host store.
When to use: When the user provides new SSH details, or after an auth_failed error to update credentials. When NOT to use: Do not ask for credentials again if they are already saved and still valid.
Example: save_server(connection_id="srv1", host="1.2.3.4", user="root", auth_type="password", credential="", port=2222)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server hostname or IP address | |
| port | No | SSH port. Defaults to 22. If omitted, keeps the existing saved port (if any). | |
| user | Yes | SSH username | |
| auth_type | Yes | Authentication method: 'password' or 'private_key' | |
| credential | Yes | Password for 'password' auth, or path/PEM text for 'private_key' auth | |
| connection_id | Yes | Unique identifier for this server connection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||