Categories: TutorialsUbuntu

How to Manage Systemd Services on Remote Linux Systems

Often system administrators need to manage systemd services and processes on their local as well as remote systems on their network. They use systemctl utility for this purposes. It allows you to manage system not only on local systems but also remote systems. But while using systemctl they need to manage systemd services over SSH. In this article, we will learn how to manage systemd services on remote Linux systems.

How to Manage Systemd Services on Remote Linux Systems

Here are the steps to manage systemd system and service manager on remote Linux machine using SSH. It is advisable to use public/private key pairs instead of using passwords to secure SSH connections.

Sponsored

To manage remote services using systemctl use –host or -H option followed by remote username & address, followed by the systemctl command. Here is an example to start httpd (Apache web server) service.

$ systemctl --host test_user@54.43.32.21 status httpd.service
OR
$ systemctl -H test_user@54.43.32.21 status httpd.service

In the above commands, 54.43.32.21 is the IP or address of remote server where you want to manage the httpd service. test_user is the username.

You may be asked for remote password, depending on how you have configured the remote SSH connection.

Sponsored

In this article, we have learnt how to manage systemd services on remote Linux systems.

Also read:

How to Enable Confirmation for rm
How to Share Linux Terminal Session
How to Use WhoIs Command in Linux
How to Extract & Copy Files from ISO Image
Tools to Scan for Viruses & Malware

The post How to Manage Systemd Services on Remote Linux Systems appeared first on Fedingo.

Ubuntu Server Admin

Recent Posts

How is Livepatch safeguarded against bad actors?

Canonical Livepatch is a security patching automation tool which supports reboot-less security updates for the…

12 hours ago

Accelerating data science with Apache Spark and GPUs

Apache Spark has always been very well known for distributing computation among multiple nodes using…

12 hours ago

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

2 days ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

2 days ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

2 days ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

3 days ago