Your first login to a new VPS or dedicated server

Connect over SSH, update the system, create a sudo user and switch to SSH keys.

Updated 22 September 20262 min read7 views0 found this helpful
Applies toUbuntu logoAlmaLinux logo
On this page

Your welcome email contains the server IP address and root password. Secure the server before you install anything else.

Connect

On macOS, Linux or Windows Terminal:

ssh [email protected]

On older Windows versions you can use PuTTY.

Update and add a user (Ubuntu / Debian)

apt update && apt -y upgrade
adduser deploy
usermod -aG sudo deploy

Update and add a user (AlmaLinux / Rocky)

dnf -y update
adduser deploy && passwd deploy
usermod -aG wheel deploy

Switch to SSH keys

  1. On your computer run ssh-keygen -t ed25519.
  2. Copy the key: ssh-copy-id [email protected].
  3. Log in as the new user to confirm it works.
  4. Edit /etc/ssh/sshd_config and set PasswordAuthentication no and PermitRootLogin no, then restart SSH.
#VPS#SSH#Linux#security

Was this article helpful?

Your vote helps us write better guides.

Keep reading

Related articles

Still stuck?

Talk to our support team

Open a ticket

Best for anything technical. Every reply is tracked.

Submit a ticket

Call our Nairobi team

+254 726 872 512 · +254 722 917 455

Call now

Message us

Send a question and we'll reply by email or phone.

Contact support
Launch today

Powering Your Online Success!

Domain, hosting, email and SSL from one local team — set up in minutes and backed by people you can call.

  • Free SSL
  • Free migration
  • 99.9% uptime
  • 24/7 expert support

Start with your domain

Check availability, then add hosting in the same order.

Prefer to talk? Call +254 726 872 512