Tous les articles

ssh

How to Connect to Your VPS Over SSH for the First Time

A plain-English first SSH login guide: what you need, what to type, and what the common connection errors mean.

  • ssh
  • security
  • beginners
A terminal sends a secure SSH command through a lock to a VPS server with a first-login checklist.

You have a fresh server, a login from your provider, and a black terminal window that feels like it could break something if you type the wrong word.

Short version: SSH, short for Secure Shell, is the normal way to open a safe remote command line on your server. To connect for the first time, you need the server IP address, a username, and either a password or an SSH key from your provider. Most first-login problems come from the wrong username, a missing key, a blocked port, or a server that is not finished booting yet.

What do you need before you connect?

Think of SSH like the side door to a building. You need three things: the address of the building, the name on the door list, and proof that you are allowed in.

The address is usually your server's public IP address, something like 203.0.113.10. Your provider shows it in the server dashboard.

The username is often root on a new server, but not always. Some images use names like ubuntu, debian, or admin. If root does not work, check the provider's welcome email or server details page.

The proof is either a password or an SSH key. A password is familiar. An SSH key is a pair of matching files: one public key on the server, and one private key on your computer. The private key is like a physical house key: do not paste it into websites, chat, tickets, or notes.

How do you connect with SSH?

On macOS and Linux, open Terminal. On Windows, open Windows Terminal or PowerShell. Modern Windows includes the ssh command, so you usually do not need PuTTY anymore.

The basic shape is:

bashssh username@server_ip_address

For a new server, that might look like:

bashssh root@203.0.113.10

The first time, SSH may ask whether you trust the server fingerprint. This is your computer saying, "I have never met this machine before. Should I remember it?" If the IP address is correct and this is a fresh server you just created, answering yes is normal.

Then one of two things happens. If the server uses a password, you type it in. The cursor may not move while you type; that is normal. If the server uses an SSH key, your computer tries the private key automatically, or you point SSH to the right key file.

A successful login usually ends with a prompt that looks a bit like root@server:~# or user@server:~$. That prompt means you are now typing on the server, not just on your laptop.

If this is your first day with a server, it helps to pair SSH access with a few basic safety steps. We cover that broader first-day path in a beginner's first steps after getting a server, but SSH is the front door you will use for many of them.

What do the common SSH errors mean?

SSH errors look harsh, but most of them are plain problems wearing technical clothes.

Permission denied (publickey) means the server did answer, but it did not accept your key. Usually the username is wrong, the wrong private key is being used, or the public key was not added to this server.

Permission denied, please try again usually means the password was wrong, or password login is not allowed for that user.

Connection timed out means your computer could not reach the SSH service at all. Picture knocking on a door and hearing nothing. The server may still be booting, the IP address may be wrong, your network may block the connection, or a firewall may be blocking SSH. Once you can log in, setting a firewall carefully matters; here is a plain-English guide to setting up a server firewall.

Connection refused means you reached the server, but nothing was listening for SSH on that port. The SSH service may be stopped, installed differently, or moved to another port.

Host key verification failed means your computer remembers a different machine at that address. This can happen after rebuilding a server with the same IP address. It can also be a warning sign if you did not expect anything to change, so do not blindly ignore it.

Is SSH safe for a first login?

Yes, SSH is designed for safe remote access. It encrypts the connection, so people between you and the server cannot read your commands like a postcard in the mail.

The risky part is not SSH itself. The risky part is loose access: weak passwords, reused keys, keys stored in random folders, or leaving the main administrator account open to the whole internet forever.

After your first login, your next jobs are usually simple: update the server, add a normal user if needed, keep your SSH key safe, and make sure backups exist before you build anything important. Backups feel boring until they save you from a bad command or broken update; this guide explains how to back up your server and restore it.

FAQ

What port does SSH use? SSH usually uses port 22. Some servers use a different port, but your provider or setup notes should say so.

Can I connect without a password? Yes. That is what SSH keys are for. Your private key proves your identity without typing the server password each time.

Why does the password not show while I type? Terminals often hide password input completely. No dots, no stars, no movement. Type the password and press Enter.

**Should I use root?** For the very first login, often yes if your provider gave you root. Long term, many people create a normal user and reduce direct administrator access.

The shortcut

Server Manager keeps this first connection from turning into a pile of notes, copied IP addresses, mystery users, and half-remembered setup choices. Instead of losing track of which server uses which access method, you keep the setup understandable after the first successful login.

It also helps you avoid the common mess around early server work: a blocked SSH door, an unclear firewall change, a forgotten backup before editing something important, or not remembering months later why a server was configured a certain way.

The real benefit is not avoiding the terminal forever. It is making sure the parts around SSH stay legible, so one small access problem does not become a full afternoon of detective work.

What do you win once SSH works?

Once SSH works, the server stops being an unknown box and becomes something you can actually inspect, maintain, and fix. You can log in, read errors, update software, check services, and make changes with confidence.

That first successful prompt is a small moment, but it matters. You now have a safe way in, a clearer idea of what can go wrong, and a path to keep the setup understandable as your project grows.