To improve the security of your VPS, it is recommended to use an SSH key rather than a password. Here's how to generate an SSH key and add it to your VPS via the client panel.

1. Generate an SSH Key

This method works on Windows, macOS, and Linux

On these systems, you can use the ssh-keygen command to generate an SSH key:

  1. Open the terminal:
    • On macOS and Linux, search for "Terminal".
    • On Windows, use PowerShell or the command prompt (type "cmd" or "PowerShell" in the search bar).
  2. Generate the SSH key by executing the following command:
    ssh-keygen -t ed25519

    This command creates an ED25519 type SSH key.

  3. You will be prompted to choose a location to save the key. By default, it will be saved in the ~/.ssh/id_rsa folder. Simply press Enter to accept the default location.
  4. Next, you will be asked to set a passphrase (optional). This can add an extra layer of security, but you can press Enter to leave this field empty.
  5. Your public and private SSH keys will be generated. The public key will have a .pub extension (e.g., id_ed25519.pub).

2. Add the SSH Key to Your VPS via the Client Panel

Once the SSH key is generated, you need to add it to your VPS via the client panel:

  1. Copy the contents of the public key:

         By default on Linux and macOS, the key is located in: ~/.ssh/id_ed25519.pub
         On Windows, it is in: C:\Users\YOUR_USERNAME\.ssh\id_ed25519.pub

  1. Access the client panel and log in to your account.
  2. In the client panel, click on "My Services", then select your VPS. On this page, you will see an "Information" section below the VPS control buttons, click on the pencil icon to the right of this section.
  3. Then, you will see a pop-up displaying a text field "", paste the content of your copied key from above into this field and then save the changes.
  4. You can now restart your VPS using the "Restart" button at the top of this page.

3. Connect to Your VPS with the SSH Key

Now that your SSH key is added to the VPS, you can connect without a password using the following command:

ssh -i ~/.ssh/id_ed25519.pub [username]@[IP address]

Replace [username] with your VPS username and [IP address] with your VPS IP address.

If you encounter any difficulties, please feel free to contact our technical support.

Was this answer helpful? 2 Users Found This Useful (2 Votes)