Developer & DevOps

Execute server commands via Webhook with conditional routing

33 nodes 193 132 Webhook
Download

Workflow Description

A webhook-triggered workflow that receives requests, processes them based on conditions, executes SSH commands on remote servers, and returns results immediately. Includes error handling and dynamic response management.

How it works

  1. 1.Receive and parse incoming webhook requests with payload validation
  2. 2.Evaluate conditions to determine execution path and command parameters
  3. 3.Execute SSH commands on the target remote server
  4. 4.Process results and send response back through webhook endpoint

Use cases

  • Automate deployment and update processes on production servers from external applications
  • Trigger infrastructure maintenance, backups, and configuration tasks remotely
  • Integrate server management operations into CI/CD pipelines and third-party tools

Requirements

  • Establish secure SSH connection credentials and authentication keys for target servers
  • Configure server hostnames, ports, and command definitions in workflow settings
  • Set up webhook URL and define authentication tokens for request validation

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Ssh

Details

Trigger Webhook
Nodes 33
Apps 1
Views 193
Downloads 132

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (33)

/

If

If

#1

Parametrs

Set

#2

API

Webhook

#3

422-Invalid server domain

Webhook

#4

Code1

Code

#5

SSH

Ssh

#6

Container Actions

Switch

#7

Service Actions

Switch

#8

API answer

Webhook

#9

Inspect

Set

#10

Stat

Set

#11

Start

Set

#12

Stop

Set

#13

Test Connection1

Set

#14

Deploy

Set

#15

Suspend

Set

#16

Terminated

Set

#17

Unsuspend

Set

#18

Mount Disk

Set

#19

Unmount Disk

Set

#20

Log

Set

#21

ChangePackage

Set

#22

Sticky Note

Sticky Note

#23

Deploy-docker-compose

Set

#24

Version

Set

#25

Users

Set

#26

If1

If

#27

MinIO

Switch

#28

nginx

Set

#29

Container Stat

Switch

#30

GET ACL

Set

#31

SET ACL

Set

#32

GET NET

Set

#33