Technology

about-banner-img
image

How to Connect Your Domain via SSH (Enhance Control Panel)

SSH access allows you to securely connect to your hosting account and manage your website from the command line.


Step 1: Generate an SSH Key Pair

Windows (Git Bash or PowerShell)

  1. Open Git Bash or PowerShell.
  2. Run the following command:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  1. Press Enter to accept the default file location (~/.ssh/id_rsa).

Key Generated! Goto: Step 2: Copy Your Public Key

macOS / Linux

  1. Open Terminal.
  2. Run the following command:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  1. Press Enter to accept the default file location (~/.ssh/id_rsa).
  2. If prompted, you can optionally set a passphrase.

Key Generated! Goto: Step 2: Copy Your Public Key


Step 2: Copy Your Public Key

Run the following command:

cat ~/.ssh/id_rsa.pub

Copy the entire output, which will look similar to:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQ... your_email@example.com

Note: Only copy the contents of id_rsa.pub. Never share your private key (id_rsa).


Step 3: Add Your Public Key to Enhance

  1. Log in to the Enhance Control Panel.

  2. Navigate to:

    Websites → Your Domain → Advanced → Developer Tools → SSH Key Manager

  3. Click Add SSH Key.

  4. Paste your public key into the field provided.

  5. Click Save.


Step 4: Connect via SSH

After adding your SSH key, connect to your hosting account using:

ssh -p 22 yourusername@yourdomain.com

Replace:

  • yourusername with your hosting username.
  • yourdomain.com with your actual domain name.

If your private key is stored in a different location, specify it manually:

ssh -i ~/.ssh/id_rsa -p 22 yourusername@yourdomain.com

Troubleshooting

  • Ensure your public key has been added correctly in the SSH Key Manager.
  • Verify that you're using the correct hosting username.
  • Make sure your domain is pointing to your hosting server.
  • Confirm that port 22 is not blocked by your firewall or network.

Security Tips

  • Upload only your public key (id_rsa.pub) to the Enhance Control Panel.
  • Never share your private key (id_rsa) with anyone.
  • Consider protecting your private key with a passphrase for added security.

Once your SSH key has been added successfully, you'll be able to securely connect to your hosting account without needing to enter your password each time.

Search News
Popular Category