DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk7 min

How to Restart a VPS After Running `shutdown -h now`

If `shutdown -h now` powered off your VPS, SSH cannot bring it back. Use the provider’s Start or Power on control, verify boot through its console, and use `shutdown -r now` for future reboots.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If sudo shutdown -h now has already run, your VPS is powered off and cannot be started through SSH. Open your hosting provider’s control panel, select the stopped instance, and choose Start or Power on. Use the provider’s browser or serial console to watch the boot process, then reconnect with SSH and verify services, mounts, and logs. For a reboot while you still have a live shell, use sudo shutdown -r now or sudo systemctl reboot.

What happened when you ran shutdown -h now?

The command selected an immediate poweroff, not a reboot. In the shutdown syntax documented for Ubuntu and systemd-based Linux, now is an alias for +0, meaning the action starts immediately. The -h option selects halt/poweroff behavior unless an explicit halt or poweroff mode changes that choice.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After the operating system completes the shutdown, the virtual machine is no longer running. Its network interface, SSH daemon, and applications are unavailable, so another SSH command cannot turn it back on. Starting a powered-off VPS requires an action from the provider’s control plane, management API, or an out-of-band console.

Recovery procedure: turn the VPS back on

  1. Wait briefly, then test SSH once. Shutdown may still be finishing. A single connection attempt distinguishes a delayed shutdown from a completed poweroff; repeated attempts do not start a stopped guest.
  2. Open the VPS provider dashboard. Sign in through the provider’s normal web control panel and open the page for the affected instance.
  3. Check the reported power state. If the panel says Stopped, Powered off, or similar, use Start or Power on. Those controls are intended to boot an instance that is not running.
  4. Use Reboot only when appropriate. If the panel still reports the VPS as running, or the guest appears stuck during shutdown, choose the provider’s documented Reboot or Reset action. Do not assume every button labeled “restart” performs a graceful operating-system reboot.
  5. Open an out-of-band console when available. A browser, HTML, serial, or instance console can show firmware, bootloader, filesystem checks, and service-start errors even when SSH is unavailable.
  6. Reconnect after the system is reachable. Once the console or dashboard shows that the guest has booted, connect with SSH and perform the post-boot checks below.
  7. Escalate failed control-plane actions. If Start, Power on, or Reboot returns an error, use the provider’s documented API or support channel. Include the instance identifier, the displayed power state, the time of the failed action, and any console output.

Choosing Start, Reboot, Reset, or an API operation

Provider controls operate outside the guest operating system, so their names and effects differ. The safest choice depends on the power state shown by the panel and whether the guest is responding.

Panel state or symptom Preferred action What to verify
Stopped or powered off Start or Power on The instance transitions to running and produces boot output in the console.
Running and responsive Use an in-guest graceful reboot when possible Services stop cleanly and SSH returns after boot.
Running but shutdown appears stuck Provider Reboot or Reset, following its documentation Whether the operation is graceful or a hard power cycle.
Dashboard action fails Provider API or support channel The exact error, current power state, and console output.

Some platforms expose separate instance-console and reboot management functions. Jetstream2 documents console access and instance reboot management, while VPS.org documents restart and power operations through its API. These examples illustrate why you should read the specific provider’s semantics: one provider’s “restart” may mean a graceful reboot, while another defines it as stopping the virtual machine and starting it again.

If the shutdown has not completed yet

A shutdown scheduled for a future time can be canceled from a still-live shell with:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo shutdown -c

That cancellation is useful for commands such as shutdown -h +10, where the ten-minute delay leaves time to change your mind. It may be too late after shutdown -h now, because +0 begins the operation immediately. If the shell is still accepting commands, cancel first and then choose the correct reboot command.

The correct commands for future maintenance

Intent Command Result and caution
Immediate poweroff sudo shutdown -h now Requests an immediate halt/poweroff. The guest will need a provider-side start action to run again.
Immediate graceful reboot sudo shutdown -r now Selects reboot instead of poweroff and allows the operating system to stop services and unmount filesystems through its normal shutdown path.
Reboot through systemd sudo systemctl reboot Asks systemd to perform a normal reboot from a live shell.
Forced reboot sudo reboot -f or the equivalent forced systemd form Bypasses normal init handling. Debian warns that filesystems may not be properly unmounted, so use this only when graceful reboot methods fail.

For routine maintenance, use shutdown -r now or systemctl reboot. Reserve a forced reboot for a guest that is genuinely unresponsive and where the provider’s console or support guidance indicates that a hard recovery is necessary.

Why SSH cannot restart a powered-off VPS

SSH is a network service running inside the guest. Powering off stops the kernel, network stack, and SSH daemon together. An SSH client therefore has no execution environment in which to run reboot, systemctl, or any other command. Authentication failures, connection timeouts, and “connection refused” messages all have the same practical implication in this situation: use the provider’s management plane rather than trying different SSH options.

The provider control plane communicates with the virtualization host, not with a running shell inside the VPS. That is why Start and Power on remain available after an intentional guest shutdown.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Using the browser or serial console

A console is valuable when the dashboard says the instance is running but SSH does not return. Open it before issuing repeated power operations and watch for:

  • Kernel or bootloader messages indicating that the guest is actually starting.
  • Filesystem checks or emergency-mode prompts that require a response.
  • Network configuration errors that prevent SSH even though the operating system booted.
  • Service failures that occur after the network comes up.

If the console shows a login prompt, the operating system is up and the problem is likely limited to networking, SSH configuration, or firewall rules rather than power state. If it remains blank or frozen while the control panel reports “running,” follow the provider’s documented reset procedure instead of assuming that another in-guest command can help.

Post-boot checks after SSH returns

Do not stop at the first successful login. A power transition can leave an important service, mount, or scheduled task in a different state. Run checks appropriate to your distribution and workload:

  1. Confirm the current boot. Check the system’s uptime and current time so you can distinguish the new boot from an old terminal session.
  2. Check failed systemd units. Run systemctl --failed. Investigate any unit listed as failed before declaring the VPS healthy.
  3. Verify disks and mounts. Use lsblk -f to see attached filesystems and findmnt to confirm that required mount points are present.
  4. Check critical applications. Query each workload’s service status with systemctl status SERVICE_NAME, replacing SERVICE_NAME with the actual unit used by your application.
  5. Review the previous boot’s warnings. journalctl -b -1 -p warning..alert shows warning and higher-priority messages from the boot before the current one when that journal is available.
  6. Test externally. Verify the ports, web endpoints, monitoring checks, and scheduled jobs that users depend on, not only the SSH connection.

If a mount is missing, do not immediately recreate data or edit /etc/fstab. First compare the device name and filesystem identifier shown by lsblk -f with the configured mount entry, then use the console or provider documentation for recovery if the disk itself is absent.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When the provider reports a contradictory state

The panel says “stopped,” but Start does nothing

Wait for the operation result rather than clicking Start repeatedly. Capture the error message and instance state, then try the provider’s documented power API if one exists. A failed start can be caused by a control-plane issue that only support staff can clear; additional clicks do not provide more information.

The panel says “running,” but SSH times out

Open the browser or serial console. If boot output is progressing, wait for the network and SSH service to finish starting. If the console is frozen, use the provider’s documented Reboot or Reset operation and record that it may be a hard stop/start cycle.

The VPS boots but an application is unavailable

Use systemctl --failed, the individual service’s status command, and the previous-boot journal query. Check mounts before restarting an application that expects data on a separate volume. A successful VPS boot does not guarantee that every dependent service started successfully.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You have no console or API access

The provider’s support channel is the remaining recovery path. Supply the instance name or identifier, the approximate time you ran the shutdown command, the dashboard’s current state, and the exact result of any Start or Reboot action. This gives support enough context to distinguish a powered-off guest from a host-side problem.

Graceful reboot versus a hard stop/start cycle

A graceful reboot lets the guest operating system signal services, flush buffered data, unmount filesystems, and then restart. A hard stop/start cycle is controlled by the virtualization host and may remove power from the guest before those steps complete. Provider APIs sometimes call the latter “restart,” so the label alone is not a safety guarantee.

Before selecting a provider-side reset, check whether its documentation specifies graceful reboot, stop-then-start behavior, or a forced reset. Prefer the in-guest commands while the shell is healthy; use the control-plane operation when the guest is already off or no longer responds.

Preventing an accidental poweroff

  • Read the option before pressing Enter: -h selects halt/poweroff, while -r selects reboot.
  • Use sudo systemctl reboot when you want an unambiguous systemd reboot command.
  • For delayed maintenance, schedule a future action and keep sudo shutdown -c available until the window begins.
  • Confirm that you are connected to the intended VPS before running any power command, especially when several terminal tabs use similar hostnames.
  • Keep provider dashboard credentials, API documentation, and console access available before maintenance starts; SSH alone cannot recover a powered-off guest.

The key distinction is simple: shutdown -h now ends the guest’s power state, whereas shutdown -r now ends the current session and starts the operating system again. Once the first command has completed, recovery begins outside Linux with the provider’s Start or Power on control.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.