How to Set Up an SSH Connection with Contabo 

Managing a Contabo server requires both security and efficiency. One of the most important steps in securing remote access is setting up an SSH (Secure Shell) connection. This is a practical guide on understanding Secure Shell to configuring it on both Windows and Linux systems. Hosting websites, managing applications, or handling databases – in all these cases SSH ensures that your communication with the server remains private and encrypted. 

What Is SSH 

Secure Shell is a network protocol that allows secure access to remote servers over an unsecured connection. It uses cryptographic keys instead of passwords, ensuring only authorized users can connect. SSH is essential for managing servers, transferring files, and executing commands safely and efficiently. 

Why Use SSH for your Server

SSH is the most reliable way to connect to your Contabo server. Unlike traditional password-based logins, SSH key authentication offers stronger protection against unauthorized access. This makes it particularly important if you manage websites, applications, or remote files where security is a priority. 

Setting Up SSH on Windows 

To connect securely from a Windows computer, you’ll need PuTTY and PuTTYgen. These tools help you generate and manage SSH keys. 

Step 1: Install PuTTY 

Download and install PuTTY on your Windows machine. 

Step 2: Generate SSH Keys with PuTTYgen 

  1. Open PuTTYgen
  1. Click Generate and move your mouse randomly to add entropy. 
  1. Add a Key Comment for easy identification. 
  1. Set a Key Passphrase to protect your private key. 
  1. Save both your Public Key and Private Key in a secure location. 

Step 3: Copy the Public Key 

  • In PuTTYgen, highlight the key text that starts with ssh-RSA
  • Copy it to your clipboard. 

Step 4: Upload the Public Key to your Contabo Server 

  • Connect to your server via SSH. 
  • Open the authorized_keys file. 
  • Paste your public key, then save and exit. 

Step 5: Load Your Private Key in PuTTY 

  • Open PuTTY settings. 
  • Navigate to Connection > SSH > Authentication
  • Under Private key file for authentication, load your saved private key. 

Step 6: Connect via SSH 

You can now connect securely to your Contabo server using your SSH key. 

Extra Tip 

If you reinstall your operating system via the Contabo Customer Control Panel, you can preload your SSH key before installation. This saves time and avoids using passwords at all. 

Setting Up SSH on Linux 

Linux systems include built-in tools for generating and using SSH keys. Key-based authentication is strongly recommended over passwords. 

Step 1: Generate SSH Keys 

Run the following command on your local machine: 

ssh-keygen 
  • You’ll be prompted to choose a filename. 
  • Set an optional passphrase for additional security (recommended). 

This generates two files: 

  • A private key (kept on your machine). 
  • A public key (uploaded to your server). 

Step 2: Upload the Public Key 

Use the following command to upload your public key: 

ssh-copy-id user@your-server 

If you’ve changed your SSH port, adjust the command with the -p flag. 

Step 3: Connect Securely 

Now, your server will recognize your SSH key, allowing you to log in without a password. 

Extra Tip 

As with Windows, you can preload your SSH key before reinstalling your OS in the Contabo Customer Control Panel. 

Learn more in our Video about Secure Shell

If you prefer a visual walk-through, we’ve also created a step-by-step video tutorial that takes you through the entire process. 

Final Thoughts 

By setting up SSH keys, you strengthen your server’s security and streamline your workflow. Whether you’re connecting from Windows with PuTTY or directly from Linux, Secure Shell eliminates password-based logins and helps prevent unauthorized access. 

With this setup complete, you can manage your Contabo server confidently and securely. 

Scroll to Top