Skip to content

cPanel

Terminal and SSH from cPanel

Enable SSH Access in cPanel, add a key, and use Terminal or a local client as your account user.

Updated Aug 29, 20263 min read13 reads
Terminal and SSH from cPanel
Open Terminal or connect with SSH from cPanel

cPanel SSH gives you a command-line shell as your hosting account user, not as root. You can use the in-browser Terminal, or connect from your computer after you enable SSH Access and add a key. On shared hosting the shell is jailed under CloudLinux LVE, so you work inside your account only.

Turn on SSH Access and install a key

Open cPanel and go to SSH Access. Generate or import an SSH key, then authorize it for the account before you rely on it. Keep a second working session on the key before you turn password SSH off, if your panel offers that option. Prefer an ed25519 key when your client supports it, and store the private key only on your machine.

The browser Terminal uses the same account user as a normal SSH login. It is fine for a quick check, but it drops if your laptop sleeps or the tab closes. For longer work, connect with a real SSH client from your computer so the session stays stable.

What the shared shell can and cannot do

On shared hosting you typically get PHP CLI tools, git, tar, and a MySQL client inside your home directory. You do not get root, package installs with apt, or the ability to bind privileged ports. That limit is intentional on shared plans. If you need full root on a KVM VPS, use that environment instead of this cPanel shell.

When the site is a white screen and File Manager is the wrong tool, confirm you are in the right tree with a simple check:

bash
cd ~/public_html && wp option get siteurl

If the wp command is missing, ask support to enable WP-CLI on the account. Do not download a random wp-cli.phar into public_html from a blog or mirror.

Use the shell to verify, not to replace hardening

Agent forwarding into shared hosting is unnecessary for normal site work, so leave it off. Harden the account with panel 2FA, keys instead of passwords, and no world-writable directories. The shell helps you verify paths and configs; it does not replace those basics.

Nameservers for our hosting remain ns1.logicweb.com and ns2.logicweb.com when you point the domain. AutoSSL handles certificates on cPanel when DNS is correct. If WP-CLI or SSH Access needs a toggle on your plan, open a ticket and we will check the account with you.

Share

Send this article

Need someone else to do this? Send them the link — the commands are in the article.

Tagged

Was this article helpful?

Be the first to rate this article.