How to Enable and Use SSH Access on Your Hosting — cPanel & Hosting How-Tos cPanel & Hosting How-Tos

How to Enable and Use SSH Access on Your Hosting

By Genhost Team 2 min read

SSH (Secure Shell) gives you encrypted command-line access to your hosting — the fastest way to run developer tools, manage files and databases, and automate tasks. If you’re comfortable with a terminal, it’s a big time-saver. Here’s how to enable and use it.

What you can do with SSH

  • Run WP-CLI to manage WordPress from the command line (updates, password resets, search-replace).
  • Use git and composer for development workflows.
  • Extract large archives or move many files far faster than in a browser.
  • Manage databases and run scripts.

Step 1: Enable SSH access

On shared hosting, SSH is sometimes off by default for security:

  1. In cPanel, open SSH Access (under Security) — or Terminal for an in-browser shell.
  2. If SSH is disabled for your account, request it from support (shared accounts may need it switched on).
  3. On a VPS, you have full SSH access by default.

Step 2: Connect

A key pair is more secure than a password:

  1. In SSH Access → Manage SSH Keys, generate a key pair (or import your existing public key).
  2. Authorize the public key.
  3. Connect from your computer’s terminal:
    ssh username@yourdomain.com -p PORT
    
    (Your host provides the correct port — it’s often not the default 22 on shared hosting.)

With the in-browser Terminal

cPanel’s Terminal gives you a shell right in your browser — no setup, good for quick commands.

Step 3: Useful first commands

pwd                      # where am I
ls -la                   # list files, including hidden
cd public_html           # move into your web root
du -sh *                 # see folder sizes
unzip archive.zip        # extract a zip quickly
wp core update           # update WordPress (if WP-CLI is available)

Keep SSH secure

  • Use a key pair, not a password, where possible.
  • Protect your private key — never share it; keep it on your own machine.
  • Enable SSH only where needed, and disable it on accounts that don’t use it.
  • Pair it with the account security basics — see secure your hosting account with strong passwords and 2FA.

If the connection is refused

  • Confirm SSH is enabled for the account.
  • Use the correct port (ask support if unsure).
  • Your IP may be firewall-blocked after failed attempts — contact support to unblock it.

Access that grows with you

SSH and the in-browser Terminal are available on our Web Hosting (on request) and Reseller Hosting, and with full root access on a Managed VPS when you need complete control. Our support team can enable SSH and confirm your port and key setup.

Frequently asked questions

What is SSH used for in web hosting?

SSH gives you secure command-line access to your hosting account. Developers use it to run tools like WP-CLI, composer and git, move or extract large files quickly, manage databases, and automate tasks - all faster than clicking through a control panel.

Is SSH access safe?

Yes, SSH is encrypted and secure by design. Make it safer still by using an SSH key pair instead of a password, keeping your private key protected, and only enabling SSH on accounts that need it.

Why is my SSH connection refused?

Common causes are SSH not being enabled for the account, using the wrong port, or your IP being blocked by the firewall after failed attempts. Confirm SSH is enabled, use the correct port, and contact support if your IP may be blocked.