Create a deploy user on your Ubuntu server

Learn how to create a dedicated deploy user with SSH access on your Ubuntu VPS. This guide works for both Ubuntu 22.04 and 24.04.

30 min 5 steps
LinuxSSHServerRemote Access

When you first create a server or VPS, you usually get root access. You might be tempted to use it to start deploying your services and projects. However, it is highly discouraged to use the root user for anything other than creating your first non-root user.

What You’ll Learn

  • Creating a non-root user.
  • Adding the user to the sudo group.
  • Setting up SSH authentication for the new user.
  • Verifying the new user’s access and privileges.

Prerequisites