Developer & DevOps

Execute Server Commands via Telegram Messages

27 nodes 291 167 Automatic trigger
Download

Workflow Description

Automation enabling direct SSH command execution on servers from Telegram with manual triggering, scheduled execution, and conditional logic for remote system administration tasks.

How it works

  1. 1.Receive commands from Telegram, manual trigger, or scheduled interval
  2. 2.Process commands through conditional logic and custom workflows
  3. 3.Execute SSH commands on target server with authentication
  4. 4.Send command output and execution status back via Telegram
  5. 5.Log results and system state for audit and monitoring

Use cases

  • Manage production servers directly from Telegram without a web dashboard
  • Schedule and automate system maintenance, backups, and updates remotely
  • Monitor server health and execute corrective actions on failures
  • Streamline DevOps workflows by centralizing commands in a chat interface

Requirements

  • Active Telegram account with valid Bot API token and webhook URL
  • SSH credentials including server address, username, and authentication method
  • Sufficient SSH permissions to execute required commands on target systems

Service Value

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

Apps Used

Ssh Telegram

Details

Trigger Automatic trigger
Nodes 27
Apps 2
Views 291
Downloads 167

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 (27)

/

Pull n8n Image

Ssh

#1

docker compose pull

Ssh

#2

check n8n installed version

Ssh

#3

When clicking ‘Test workflow’

Manual Trigger

#4

Schedule Trigger

Schedule Trigger

#5

Sticky Note

Sticky Note

#6

Sticky Note1

Sticky Note

#7

Sticky Note2

Sticky Note

#8

Sticky Note3

Sticky Note

#9

Sticky Note4

Sticky Note

#10

Sticky Note5

Sticky Note

#11

Sticky Note6

Sticky Note

#12

Sticky Note7

Sticky Note

#13

Sticky Note8

Sticky Note

#14

Sticky Note9

Sticky Note

#15

Sticky Note10

Sticky Note

#16

Sticky Note11

Sticky Note

#17

docker compose up

Ssh

#18

Sticky Note12

Sticky Note

#19

Set Default variable

Set

#20

Github HTTP Request

HTTP Request

#21

Merge Results

Merge

#22

Edit Version String

Set

#23

Comapre Two Input

If

#24

Telegram Notif

Set

#25

Telegram Approve

Set

#26

Telegram Notif1

Set

#27