When you purchase an Aveshost Linux Virtual Private Server (VPS) or dedicated server, managing your operating system, software packages, web servers, and databases is done remotely using SSH (Secure Shell). SSH creates an encrypted, authenticated command-line session that allows you to control your Linux server securely from anywhere in the world.

Whether your server is running Ubuntu, Debian, AlmaLinux, Rocky Linux, RHEL, or CentOS, and whether you are connecting from Windows, macOS, or Linux, accessing your server requires just a few straightforward steps.

In this comprehensive beginner’s guide, we will walk you through connecting to a Linux VPS via SSH using native terminals, Windows PowerShell, and PuTTY, along with essential first-time security best practices.


Prerequisites

  • An active Linux VPS running any major Linux distribution (Ubuntu, Debian, AlmaLinux, Rocky Linux, RHEL, CentOS).
  • Your VPS Public IP Address (found in your Aveshost Welcome Email or Client Area dashboard).
  • Your SSH username (typically root, ubuntu, almalinux, or rocky) and initial root password.
  • An SSH client (built-in Terminal on macOS/Linux, PowerShell / Command Prompt on Windows, or PuTTY).

Method 1: Connecting via Built-in Terminal (Windows 10/11, macOS, Linux)

Modern operating systems include a pre-installed OpenSSH client, allowing you to connect without installing third-party tools.

Step 1: Open Your Terminal

  • Windows: Press Win + X and select Windows Terminal or PowerShell (or search for Command Prompt).
  • macOS: Press Cmd + Space, type Terminal, and press ENTER.
  • Linux: Press Ctrl + Alt + T.

Step 2: Execute the SSH Connection Command

Type the following command (replace root with your username and YOUR_SERVER_IP with your actual VPS IP address):

ssh root@YOUR_SERVER_IP
# OR if your server uses a distribution default username:
ssh ubuntu@YOUR_SERVER_IP      # For Ubuntu
ssh almalinux@YOUR_SERVER_IP   # For AlmaLinux
ssh rocky@YOUR_SERVER_IP       # For Rocky Linux

Step 3: Accept the Host Key Fingerprint (First Connection Only)

The first time you connect, your computer will prompt you to verify the server’s cryptographic fingerprint:

The authenticity of host '107.178.111.179 (107.178.111.179)' can't be established.
ED25519 key fingerprint is SHA256:abc123xyz...
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Type yes and press ENTER. This saves the server fingerprint to your local ~/.ssh/known_hosts file.

Step 4: Enter Your Server Password

When prompted, enter your server password and press ENTER:

root@YOUR_SERVER_IP's password: [Enter your password here]

Note: Linux security prevents characters or asterisks from displaying on the screen as you type. Simply enter your password accurately and press ENTER.

Upon successful authentication, you will be logged into your Linux VPS prompt:

[root@vps ~]#   (On AlmaLinux/Rocky Linux/CentOS)
# OR
root@vps:~#     (On Ubuntu/Debian)

Method 2: Connecting via PuTTY (Windows Graphical Tool)

If you prefer a graphical desktop interface on Windows:

  1. Download and open PuTTY (putty.org).
  2. In Host Name (or IP address), enter your server’s public IP address.
  3. Set Port to 22 and Connection type to SSH.
  4. (Optional) Type a name under Saved Sessions (e.g. Aveshost Linux VPS) and click Save.
  5. Click Open. When the security alert window appears, click Accept.
  6. Type root when prompted for login as: and press ENTER, then type your password.

Connecting on a Custom SSH Port

If your SSH server port was changed from default 22 to a custom port (e.g. 2222):

ssh -p 2222 root@YOUR_SERVER_IP

Essential Next Steps After Your First Login


Frequently Asked Questions & Troubleshooting

Q: Why does the terminal say "Connection timed out"?
A: This indicates that your VPS is powered off, the IP address is entered incorrectly, or an external firewall is blocking port 22. Check your server status in the Aveshost Client Area.

Q: How do I exit or disconnect from the SSH session?
A: Type exit or press Ctrl + D in your terminal window.


Need Further Assistance?

If you encounter difficulty connecting to your Linux VPS or need a root password reset, our technical support team is available 24/7. Feel free to submit a support ticket for prompt assistance.

Cette réponse était-elle pertinente ? 0 Utilisateurs l'ont trouvée utile (0 Votes)