Developer & DevOps
Execute Server Commands via Webhook with Conditional Responses
34 nodes
309
129
Webhook
Workflow Description
A workflow that receives webhook requests, executes SSH commands on your servers based on conditional logic, processes results dynamically through switch and filter nodes, and returns reliable responses to the client with error handling.
How it works
- 1.Receive webhook request and parse incoming data parameters
- 2.Evaluate conditional logic to determine the correct execution path
- 3.Execute SSH commands on the target server and capture output
- 4.Route responses based on success or failure using switch nodes
- 5.Send the operation result or error message back to the client
Use cases
- Manage production and development environments remotely without manual SSH access
- Trigger maintenance scripts, backups, or deployments based on external events
- Automate infrastructure operations across multiple servers from a single entry point
Requirements
- Valid and encrypted SSH credentials for the target server
- An accessible webhook endpoint that the client can reach
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Ssh
Details
Trigger
Webhook
Nodes
34
Apps
1
Views
309
Downloads
129
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (34)
/
If
If
Parametrs
Set
API
Webhook
422-Invalid server domain
Webhook
Code1
Code
SSH
Ssh
Container Actions
Switch
Service Actions
Switch
Container Stats
Switch
API answer
Webhook
Inspect
Set
Stat
Set
Start
Set
Stop
Set
Test Connection1
Set
Deploy
Set
Suspend
Set
Terminated
Set
Unsuspend
Set
Mount Disk
Set
Unmount Disk
Set
Log
Set
ChangePackage
Set
Sticky Note
Sticky Note
n8n
Switch
Version
Set
Users
Set
Change Password
Set
If1
If
nginx
Set
Deploy-docker-compose
Set
GET ACL
Set
SET ACL
Set
GET NET
Set