Skip to content
hostup.se

Turn on password login for SSH on your VPS

Checked against the client area 29 October 2026

If you get “Permission denied (publickey)” when you connect with SSH, the server only accepts SSH keys. You turn on password login in the client area. You don’t need to log in to the server first. This applies to a VPS running Linux.

Open your servers in the client area

The server must be running. The client area changes the setting through the guest agent inside the server (QEMU Guest Agent). If the agent doesn’t answer, it reads Password login status is unknown. The switch can’t be clicked then. The reason is shown under the heading.

  1. Go to VPS and click the server. The Overview tab is shown.

  2. Find the Quick Connect box. If it is collapsed, click the arrow to the right of the heading.

    The server page with VPS in the menu, the Overview tab and the Quick Connect heading framed
  3. Under SSH password login you see whether password login is on or off. If it reads Password login is disabled, it is off. Click the switch on the right to turn it on.

    The SSH password login and SSH keys rows. Password login is disabled and the switch is framed

While the setting changes, Updating... shows next to the switch. The client area changes the SSH settings inside the server and restarts the SSH service. When it is done, it reads Password login is enabled.

You can now connect with SSH as root. The password is in the Password field under Quick Connect. If the change did not go through, a red message appears under the row. Try again.

With password login off, you log in over SSH with an SSH key.

  1. Check that the server has an SSH key you can use. Click the pencil (Manage SSH Access) on the SSH keys row in the same box. The Settings tab opens with the Manage SSH Access window. Current server access lists the keys that give access right now. See Add SSH keys to your account and your VPS.

    The Manage SSH Access window with the Current server access heading framed. The key that gives access is listed under it
  2. Close the window and click the Overview tab. Click the switch next to SSH password login. If a key shows on the SSH keys row, it turns off straight away. If no key shows, the client area asks first. Click Disable password login only if you know the server has a key you can use. Otherwise you can no longer get in over SSH.

  3. When it is done, it reads Password login is disabled. The root password no longer works over SSH.

  • The setting only covers SSH. In the console you log in with the password as usual. See The console (VNC).
  • Right after the server is created, it reads Setting up server. Wait until the server has finished starting. The row updates by itself.
  • Sometimes no status shows next to the heading at all. Under it, a line only says that it couldn’t be determined whether password login is enabled. The switch works then. Click it to turn password login on.
  • If you have forgotten the root password, create a new one. See Reset the password for your VPS.
  • A Windows server has no such row. You connect to it with Remote Desktop. See Connect to your Windows VPS with Remote Desktop.