Automate Server Updates with n8n Webhook and SSH
detail.loadingPreview
This n8n workflow automates Linux server updates by using a webhook to trigger an SSH command for apt update and upgrade. It provides a simple API endpoint for seamless server maintenance.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow automates the process of updating a Debian-based Linux server. It leverages a Webhook node to receive a POST request, then uses an SSH node to execute sudo apt update && sudo apt upgrade -y commands. Finally, the Respond to Webhook node sends the command output back to the caller.
This workflow is ideal for users who want to centralize and automate server maintenance tasks, making it easy to keep systems up-to-date without manual intervention. It's particularly useful for integrating server updates into CI/CD pipelines or custom management dashboards.
Key Features
- Triggers server updates via a secure webhook.
- Executes
apt updateandapt upgrade -ycommands remotely via SSH. - Returns command output to the caller for monitoring.
- Supports basic authentication for webhook security.
How To Use
-
Set up Credentials: Configure your SSH credentials for the server you want to update and basic authentication credentials for the webhook.
-
Copy Webhook URL: Obtain the unique webhook URL generated by n8n.
-
Trigger the Workflow: Send a POST request to the webhook URL with basic authentication. For example, using curl: bash curl -X POST -u "your_username:your_password" https://your-n8n-instance/webhook/your-webhook-id
-
Monitor Output: The command output will be returned in the webhook response.
Apps Used
Workflow JSON
{
"id": "ad8a7346-bb64-462f-a312-45c2e9ca6eb7",
"name": "Automate Server Updates with n8n Webhook and SSH",
"nodes": 0,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: ad8a7346-bb64...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.