Developer & DevOps

Execute Server Commands Automatically via Webhook

33 nodes 292 160 Webhook
Download

Workflow Description

A reliable workflow that receives requests through Webhook and executes SSH commands on servers based on defined conditions, with error handling and structured responses.

How it works

  1. 1.Receive the webhook request and parse incoming data
  2. 2.Validate conditions and criteria using conditional nodes
  3. 3.Execute SSH commands on the target server
  4. 4.Process results through switch logic and routing
  5. 5.Send a structured response back to the requester

Use cases

  • Deploy applications and code automatically to production servers
  • Automate routine tasks such as backups and file cleanup
  • Update services and software remotely without manual intervention

Requirements

  • Valid SSH server credentials (IP address, port, authentication details)
  • Active webhook configuration in your external system or application
  • Sufficient server permissions to execute the required commands

Service Value

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

Apps Used

Ssh

Details

Trigger Webhook
Nodes 33
Apps 1
Views 292
Downloads 160

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

If1

If

#26

nginx

Set

#27

Container Stat

Switch

#28

GET ACL

Set

#29

SET ACL

Set

#30

GET NET

Set

#31

InfluxDB

Switch

#32

Change Password

Set

#33