ssh_execute
Execute commands on remote hosts via SSH with predefined connections. Configure SSH details in config.json and use connection IDs to send commands securely.
Instructions
Execute a command on a remote host via SSH
Example usage:
{
"connectionId": "raspberry-pi",
"command": "uname -a"
}
Configuration required in config.json:
{
"ssh": {
"enabled": true,
"connections": {
"raspberry-pi": {
"host": "raspberrypi.local",
"port": 22,
"username": "pi",
"password": "raspberry"
}
}
}
}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute | |
connectionId | Yes | ID of the SSH connection to use |