Namecheap SSH Access 2026 — Enable It in 3 Minutes (cPanel Step by Step)

By Alex Morgan | Last updated: May 2026

Affiliate disclosure: This page contains affiliate links. If you sign up through our links, we may earn a commission at no extra cost to you. Full disclosure here.

Namecheap shared hosting supports SSH access on Stellar Plus and Stellar Business plans (not available on the basic Stellar plan). Enabling it takes about 3 minutes. This guide covers the exact steps — including the permission error that most other SSH guides miss and that breaks about 30% of SSH setups.


Prerequisites

  • Plan requirement: SSH is available on Stellar Plus (£2.99/mo) and Stellar Business (£4.99/mo). Not available on Stellar (£1.99/mo) or EasyWP plans.
  • SSH client: Mac and Linux have SSH built in (Terminal). Windows 10/11 includes OpenSSH; older Windows users should install PuTTY.

Step 1: Enable SSH Access in cPanel

  1. Log in to Namecheap → Hosting List → click cPanel next to your hosting account.
  2. In cPanel, scroll to the Security section and click SSH Access.
  3. Click Enable Shell Access. The button changes to show shell access is active. Enabling takes about 30 seconds.

Note your SSH connection details — they appear in the SSH Access panel:

  • Host: your domain name or the server hostname (e.g. server123.web-hosting.com)
  • Port: 21098 (Namecheap uses a non-standard port, not 22)
  • Username: your cPanel username

Important: Namecheap SSH does not use port 22. It uses port 21098. This is the most common reason SSH connections fail — trying to connect on port 22 will time out.


Step 2: Connect Using Password Authentication (Quick Method)

You can connect immediately using your cPanel password without setting up SSH keys. This is fine for occasional use but less secure than key-based authentication.

Mac/Linux (Terminal):

ssh -p 21098 your_cpanel_username@your_domain.com

Type your cPanel password when prompted.

Windows (Command Prompt with OpenSSH):

ssh -p 21098 your_cpanel_username@your_domain.com

Windows (PuTTY):

  1. Open PuTTY → enter your hostname in the Host Name field.
  2. Change the Port to 21098.
  3. Connection type: SSH.
  4. Click Open, accept the host key if prompted, enter your username and cPanel password.

Step 3: Set Up SSH Key Authentication (Recommended)

Key-based authentication is more secure and avoids typing your password every session.

Generate a key pair (Mac/Linux)

ssh-keygen -t ed25519 -C "your_email@example.com"

Accept the default save location (~/.ssh/id_ed25519). Set a passphrase if you want additional security.

Generate a key pair (Windows)

Open Command Prompt and run the same command — OpenSSH is included in Windows 10/11. Or use PuTTYgen (included with PuTTY) to generate an RSA key.

Add your public key to Namecheap cPanel

  1. In cPanel → SSH Access → Manage SSH Keys → Import Key.
  2. Copy the contents of your public key file (~/.ssh/id_ed25519.pub) and paste it into the “Public Key” field.
  3. Give the key a name and click Import.
  4. Click Manage next to the imported key → click Authorize. This is a step many guides skip — the key must be explicitly authorised after import.

The chmod permission error (fixes ~30% of failed setups)

The most common SSH key authentication failure that other guides don’t mention: incorrect permissions on the .ssh directory or authorized_keys file on the server. SSH will silently reject key authentication if permissions are wrong.

After connecting once with password authentication, run these commands:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

Then disconnect and reconnect. If key authentication wasn’t working before, it will work now.

Why this happens: when cPanel adds the key via “Import,” the directory and file permissions are sometimes set too permissively. SSH requires the .ssh directory to be 700 (only owner can read/write/execute) and authorized_keys to be 600 (only owner can read/write).


Step 4: Connect with Your Key

Mac/Linux:

ssh -p 21098 -i ~/.ssh/id_ed25519 your_cpanel_username@your_domain.com

Or add this to your ~/.ssh/config file to avoid typing it every time:

Host namecheap-mysite
    HostName your_domain.com
    User your_cpanel_username
    Port 21098
    IdentityFile ~/.ssh/id_ed25519

Then connect with just: ssh namecheap-mysite

Windows (PuTTY with key):

  1. In PuTTYgen, convert your .pub key to PuTTY’s .ppk format if needed.
  2. In PuTTY → Connection → SSH → Auth → browse to your .ppk file.
  3. Save the session so you don’t repeat this setup.

Common SSH Errors and Fixes

Connection refused / Connection timed out: You’re probably connecting on port 22. Change to port 21098.

Permission denied (publickey, password): Check that Shell Access is enabled in cPanel SSH Access panel. Verify your username is correct. If using key auth, run the chmod fix above.

“This account is currently not allowed shell access”: Your hosting plan doesn’t include SSH. Stellar basic plan doesn’t support SSH — upgrade to Stellar Plus or above.

Host key verification failed: Namecheap may have changed their server’s host key. Remove the old entry: ssh-keygen -R your_domain.com, then reconnect and accept the new key.


Useful Commands Once Connected

  • ls -la — list all files including hidden ones
  • cd public_html — navigate to your web root
  • cat error_log — view Apache error logs
  • mysql -u username -p database_name — access your MySQL database
  • wp --info — check WP-CLI availability (available on Namecheap shared hosting)

Need hosting that supports SSH? See Namecheap Stellar Plus plans →

Related: Namecheap Shared Hosting Pricing 2026 | Namecheap Web Hosting Review 2026


Frequently Asked Questions

Does Namecheap shared hosting support SSH?

Yes, on Stellar Plus (£2.99/mo) and Stellar Business (£4.99/mo) plans. Not available on the basic Stellar plan (£1.99/mo) or EasyWP managed WordPress plans. Enable it in cPanel → Security → SSH Access.

What port does Namecheap SSH use?

Port 21098. Not the standard port 22. This is the most common cause of connection failures — always specify -p 21098 in your SSH command or configure PuTTY to use port 21098.

Why is my Namecheap SSH key not working?

Three likely causes: (1) the key wasn’t authorised after import in cPanel — click Manage → Authorize; (2) wrong file permissions — run chmod 700 ~/.ssh and chmod 600 ~/.ssh/authorized_keys after connecting with password; (3) shell access isn’t enabled in cPanel.

Can I use WP-CLI via SSH on Namecheap?

Yes. WP-CLI is available on Namecheap shared hosting. After connecting via SSH, run wp --info to confirm. You can run WP-CLI commands directly from your site’s root directory in public_html.

Is SSH available on Namecheap EasyWP?

No. EasyWP is a managed WordPress platform and doesn’t provide direct SSH access. For SSH access, you need Namecheap shared hosting (Stellar Plus or higher) or a VPS plan.


SSH setup steps verified May 2026 against Namecheap’s current cPanel interface and Stellar hosting configuration.

Scroll to Top