ssh_save_credentials
Save SSH credentials locally under a reusable name. On first use with a password, bootstrap a key so only the key credential is saved.
Instructions
Save SSH credentials locally under a reusable name. If a password is provided, the server is contacted once to bootstrap a key and only the generated key credential is saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Saved credential name | |
| hostname | Yes | Remote server hostname or IP address | |
| username | Yes | SSH username | |
| password | No | SSH password for first-time bootstrap when no private key is available | |
| private_key_path | No | Path to private key file (optional) | |
| port | No | SSH port (default: 22) | |
| known_hosts_path | No | Optional path to an extra known_hosts file | |
| trust_unknown_host | No | Allow connecting to hosts not present in known_hosts. Defaults to false. | |
| jump_host | No | Optional SSH jump host (bastion) used to reach the target via native SSH tunneling |