Skip to main content
  1. Home
  2. Knowledge Base
  3. Self Managed VPS Hosting
  4. How to Connect to Your Self-Managed VPS
  1. Home
  2. Knowledge Base
  3. Server Questions
  4. How to Connect to Your Self-Managed VPS

How to Connect to Your Self-Managed VPS

This article explains how to find your Self-Managed VPS login details and connect to it over SSH. It also covers adding SSH keys, changing the root password, and changing the hostname from the GreenGeeks dashboard.

Table of Contents

Find Your Server Details

  1. Log in to your GreenGeeks dashboard.
  2. Select Servers in the left menu.
Servers list showing a Self-Managed VPS with a Manage button
  1. Click Manage next to your Self-Managed VPS: [Virtual Private Server (KVM)]
Self-Managed VPS overview page with VPS Details

The Overview page shows the details you need to connect:

DetailWhere to find it
Primary IPTop of the page and in VPS Details
SSH commandRoot access, for example ssh [email protected]
Root passwordVPS Details. Click the eye icon to show it or the copy icon to copy it.
Free domainDomain in VPS Details, for example abc123.ggsvm.net

Connect With SSH

Use the terminal app on your computer: Terminal on macOS and Linux, or Windows Terminal or PowerShell on Windows.

  1. Open the terminal app on your computer.
  2. Enter the SSH command from Root access:
ssh [email protected]
  1. Type yes and press Enter if you are asked to confirm the server’s fingerprint.
  2. Enter the root password when prompted. If you added an SSH key, you are logged in without a password.

If SSH does not connect, use the Terminal or Console (VNC) in the dashboard instead. See How to Use the Terminal and Console on Your Self-Managed VPS

Add an SSH Key

SSH keys are more secure than passwords. Keys you add are saved to your GreenGeeks account and can be used on any of your servers.

  1. Select Settings in the left menu.
  2. Select SSH Keys.
SSH Keys page listing saved keys with On toggles
  1. Click Add SSH Key.
  2. Enter a name for the key in the Name field.
  3. Paste your public key into the Public key field. A public key file usually ends in .pub, such as id_ed25519.pub.
Add SSH Key dialog with Name and Public key fields
  1. Click Add Key.

The new key is switched On for this server and installed for the root user right away. To remove a key from this server, switch its toggle off. To delete a key from your account, click the trash icon.

Note: Never paste a private key. A private key file has no .pub extension.

Change the Root Password

Use this to set a new root password, including when you have forgotten the current one.

  1. Go to the Overview page.
  2. Click Change next to Root password in VPS Details.
Change root password dialog
  1. Enter a new password of 8 to 128 characters, or click Generate Strong Password.
  2. Select Allow a brief reboot to apply the password if required if the server may need a restart.
  3. Click Set Password.

The new password applies right away if the server is responding. If the server is not responding, the password applies after a brief restart, but only if you selected the reboot option.

Change the Hostname

  1. Go to the Overview page.
  2. Click Change next to Hostname in VPS Details.
Change hostname dialog
  1. Enter the new hostname, such as web1 or web1.example.com.
  2. Click Change.

The hostname updates on the server right away and stays the same if you rebuild the server.

Fix the Remote Host Identification Has Changed Warning

After you rebuild your server, your computer shows a REMOTE HOST IDENTIFICATION HAS CHANGED warning the next time you connect. This happens because the rebuild gives the server a new SSH identity.

  1. Open the terminal app on your computer.
  2. Remove the old entry for your server’s IP address:
ssh-keygen -R 203.0.113.10
  1. Connect again with your normal SSH command.

Only remove the old entry if you rebuilt the server. If you see this warning without a rebuild, contact support.

Next Steps

A new Self-Managed VPS is not hardened for production use. Before you host anything important:

  • Install updates with apt update && apt upgrade.
  • Set up SSH key login and consider disabling password login.
  • Add firewall rules. See How to Manage the Self-Managed VPS Firewall.
  • Set up off-server backups. GreenGeeks does not back up Self-Managed VPS data.

For more on securing Ubuntu, see the Ubuntu Server security documentation.

Was this article helpful?
Need Support?
Can't find the answer you're looking for?
Contact Support