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)
- Open Git Bash or PowerShell.
- Run the following command:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- Press Enter to accept the default file location (
~/.ssh/id_rsa).
Key Generated! Goto: Step 2: Copy Your Public Key
macOS / Linux
- Open Terminal.
- Run the following command:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- Press Enter to accept the default file location (
~/.ssh/id_rsa). - 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
-
Log in to the Enhance Control Panel.
-
Navigate to:
Websites → Your Domain → Advanced → Developer Tools → SSH Key Manager
-
Click Add SSH Key.
-
Paste your public key into the field provided.
-
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:
yourusernamewith your hosting username.yourdomain.comwith 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.