Run SSH
run_sshExecute commands on remote Linux hosts over SSH with optional sudo support for system administration tasks.
Instructions
This command could make changes to the system. Care should be taken to not disable ssh or modify files such as /etc/sudoers, etc/password, or /etc/shadow so as to render tho system inaccessible.
It can use sudo but should not prompt for password input. The sudo settings shoould allow passwordless sudo on the remote machine.
When using systemctl, make sure to add --no-pager to prevent the command from hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||