Optimizing Virtual Networks With eNlight
Cloud Computing and virtual networks are cost-effective ways to manage company data. In the old…
Managing a Linux server often requires remote access, especially when it is hosted in a data center. You can use SSH to restart a Linux server when needed, such as after maintenance or configuration changes. Before rebooting, make sure it is safe to do so, particularly if the server is running production services.
1. Restart a Linux server over SSH
Open an SSH client. Use a terminal or an SSH application such as PuTTY.
2. Connect to the server
Replace username and hostname with your account name and the server’s IP address or hostname:
ssh username@hostname
If prompted, enter your password. If your server uses SSH keys, the client may authenticate with the configured key instead.
3. Optional
Refresh package lists. On Debian- or Ubuntu-based systems, you can refresh the package lists with:
sudo apt update
This command does not install updates and is not required to reboot. Other Linux distributions use different package managers.
4. Reboot the server
Run the following command. Your account must have administrator privileges, typically through sudo:
sudo reboot
5. Reconnect after the restart
The SSH connection will usually close as the server begins rebooting. Wait for the server to come back online, then reconnect:
ssh username@hostname
Restarting a Linux system using the “reboot” command via SSH is an easy yet effective method to make sure your system and services are operating as intended. You can effectively manage your Linux system’s operations and maintenance by following the steps above in this guide. Our support team is available 24/7 to assist you if you require any help!
Read more tutorials about How To Generate A New Key SSH Access.
Explore more hosting insights, tips and industry updates.
Cloud Computing and virtual networks are cost-effective ways to manage company data. In the old…
To add or remove items from the desktop follow these steps: First Go to Desktop…
As you browse the internet, you might occasionally land on a page that doesn’t load…