Skip to content
hostup.se

Run commands on your VPS when SSH is not working

Checked against the client area 29 October 2026

If you can’t get into the server with SSH or Remote Desktop, you can run commands on it straight from the client area. The feature is called Remote Commands. Commands go through an agent inside the server, the QEMU Guest Agent. You don’t need to log in. You can for example restart SSH, turn off a firewall inside the server that locks you out, or see what is filling up the disk.

Open your servers in the client area

The server must be running. The agent must be installed and running inside the server. If it does not answer, the card shows how to start it. See If the agent does not answer.

  1. Open the server in the client area and go to the Settings tab. Scroll down to Remote Commands.

    The server’s page with the Settings tab framed
  2. The first time, click Enable Remote Commands. The choice applies to this server.

    The Remote Commands card while the feature is off, with its heading and the Enable Remote Commands button framed
  3. The top right of the card should say Agent Online.

  4. Type the command in the Command field. Press Enter or click Run. The command runs as root with full access. On Windows it runs as administrator. A wrong command can damage the server.

  5. The result appears under Output, with the Exit code below it. A green exit code (0) means the command succeeded.

    The Remote Commands card with a command in the Command field, the Run button and the result under Output framed

On Windows servers you type PowerShell commands.

The command runs inside the server straight away. You see the result when it has finished. On Linux, a command that takes longer than 30 seconds is stopped.

If the card says Agent Offline, the agent inside the server is not answering. The card then shows Guest Agent not responding and a command to run inside the server. On Linux the command restarts the agent or installs it with apt-get or dnf. On Windows it restarts the agent.

  1. Click Console at the top of the page and log in. How to log in is in the guide on the console.
  2. Run the command shown on the card.
  3. Click the refresh icon (Refresh) at the top right of the card.

If the agent is not installed on a Windows server, the card also shows a link to the VirtIO ISO. Go to the ISO tab, click Add ISO and add the ISO from the link. Mount it and open the disc in Windows. Run virtio-win-guest-tools.exe. How to add and mount an ISO is in Boot your VPS from your own ISO file.

If it says Server stopped, start the server with Start.

Update the settings of an older Linux server

Section titled “Update the settings of an older Linux server”

Servers created from an older template lack some settings that new servers have, among them zram (compressed swap in RAM) and better memory settings. One command gives the server the same settings.

  1. Go to the Settings tab and the Update server settings card. The card is only shown on Linux servers.

    The Update server settings card with its heading framed and the command to copy
  2. Copy the command with the copy button next to it.

  3. Log in to the server as root, over SSH or in the Console. Paste the command and run it.

  4. The command shows what it will change and asks before it does anything. Confirm to go ahead.

Don’t run it in Remote Commands. You can’t answer its question there. If you want to undo the changes later, the card has a command for that at the bottom.

  • Under Quick Commands there are ready-made commands, for example to show the network settings or the latest logs. One click puts the command in the Command field. It only runs when you click Run. Read it first. Some of them change the server. Enable SSH password login, for example, turns on password login and restarts SSH.
  • Press the up arrow in the field to bring back commands you have run since you opened the tab.
  • You turn the feature off with Disable at the top right of the card.
  • If you only want to turn on password login over SSH, there is the SSH password login switch on the Overview tab. See the guide on SSH password login.