Use:
SSH keys allow you to securely access your server without using a password. They are required for secure remote login, Git deployments, automation tools, and VPS management.
This article explains how to generate SSH keys on Windows, macOS, and Linux, and how to use them on GHFS Hosting.
1. What You Need Before Generating SSH Keys
-
A computer (Windows, macOS, or Linux)
-
SSH access to your hosting plan (VPS or Shared plans that support SSH)
-
Terminal or SSH client (PuTTY for Windows if needed)
2. Generate SSH Keys on Windows (Using PowerShell or Git Bash)
Steps:
-
Open PowerShell or Git Bash
-
Run the following command:
If ED25519 is not supported:
-
When asked for a file location, press Enter
-
Choose a passphrase (optional but recommended)
-
Keys will be created in:
You will see two files:
-
id_ed25519(private key) -
id_ed25519.pub(public key)
3. Generate SSH Keys on macOS or Linux
Steps:
-
Open Terminal
-
Run:
Or RSA:
-
Press Enter to save to default location
-
Optional: Set a passphrase
-
Keys are stored in:
Files created:
-
id_ed25519(private key) -
id_ed25519.pub(public key)
4. Adding Your Public Key to GHFS Hosting (Plesk)
Steps:
-
Log in to Plesk
-
Go to Websites & Domains
-
Click SSH Access (or "Web Hosting Access")
-
If your plan supports SSH, find the option to add Authorized Keys
-
Open your public key file:
-
Copy its full content
-
Paste it into the Authorized Keys field in Plesk
-
Save
You can now log in via SSH without a password.
5. Logging in With Your SSH Key
Windows (PowerShell or Git Bash):
macOS / Linux:
If keys are stored in a non-default location:
6. Protect Your Private Key
Very important:
-
Never share your private key
-
Only upload your public key
-
Do not email or store private keys online
-
Set correct permissions:
7. Troubleshooting Common SSH Key Issues
“Permission denied (publickey)”
Possible causes:
-
Wrong username
-
Public key not added to Plesk
-
Private key permissions incorrect
-
Uploading the private key instead of public key
“Key is not in OpenSSH format”
Convert using:
Cannot locate key
Ensure your key is in:
8. When to Contact GHFS Hosting Support
Contact support if:
-
SSH access is not enabled on your hosting plan
-
Your key does not work even after adding it
-
You want help setting correct permissions
-
You are unsure which username to use for SSH
-
You need SSH for Git deployment or automation
Support can check server-level configuration and assist you.