Knowledgebase

How to use Terminal and SSH access on shared hosting

This guide shows you how to use SSH access on shared hosting, either through the Terminal tool inside cPanel or from an SSH program on your own computer. SSH (Secure Shell) gives you a command line on your hosting account, which is the fastest way to unzip large files, run WP-CLI or Composer, check disk usage, or work with Git.

Note: on shared hosting you get a restricted, isolated shell (CloudLinux CageFS). You can work inside your own account only, and you cannot use sudo or install system packages. If you need full root access, a VPS is the right choice.

Option 1: Use Terminal inside cPanel (easiest)

  1. Log in to cPanel.
  2. In the Advanced section, click Terminal. You can also type "Terminal" in the cPanel search box.
  3. The first time, cPanel shows a warning. Read it and click I understand and want to proceed.
  4. A command line opens in your browser, already logged in as your cPanel user and inside your home directory.

If you do not see the Terminal icon, shell access is not enabled on your account. Open a support ticket and ask us to enable it.

Option 2: Connect from your computer with an SSH client

You need these details:

  • Host: your domain name or the server hostname shown in your welcome email.
  • Username: your cPanel username.
  • Password: your cPanel password, or better, an SSH key.
  • Port: many servers do not use the default port 22 for security reasons. The correct port is in your welcome email; if you cannot find it, ask support.

On Windows 10/11 (PowerShell or Windows Terminal), macOS or Linux, run:

ssh -p PORT cpanelusername@example.com

Replace PORT, cpanelusername and example.com with your own values. The first time you connect, type yes to accept the server fingerprint. If you prefer PuTTY, put the host and port in the session screen and log in with the same username.

Useful commands for website owners

pwd                      # show the current folder
ls -la                   # list files, including hidden ones
cd public_html           # enter your website folder
du -sh *                 # size of each folder
unzip site.zip           # extract a zip file here
tail -n 50 error_log     # last 50 lines of a PHP error log
wp plugin list           # WP-CLI: list WordPress plugins (run inside the WordPress folder)
Be careful: commands like rm -rf delete files permanently with no recycle bin. Double-check the folder with pwd first and take a backup before big changes.

Tips

  • Use SSH keys instead of passwords. They are safer and you will not be blocked for typing a wrong password.
  • Set correct permissions: 644 for files and 755 for folders. Never use 777.
  • Long tasks stop when you close the Terminal tab. Split big jobs or use a cron job instead.

Common problems

  • "Connection refused" or timeout: you are probably using the wrong port, or your IP was blocked by the firewall after several failed logins. Check the port and contact support with your public IP address.
  • "Permission denied (publickey,password)": the username or password is wrong, or password login is disabled and only keys are accepted.
  • "command not found": some tools are not available on shared hosting. Ask support whether an alternative exists.

Frequently asked questions

Is SSH included with shared hosting?

Shell access depends on your plan and account settings. If Terminal does not appear in cPanel, open a ticket and we will check it for you.

Can I use sudo or install software?

No. Shared hosting accounts are isolated from each other, so root commands are not allowed. You can still use the tools already installed, such as PHP CLI, Composer, Git and WP-CLI where available.

Is the Terminal in cPanel the same as SSH?

Yes. It runs the same shell in your browser, so you do not need any extra program.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • ssh, terminal, cpanel, shared hosting, command line

Was this answer helpful?

0 Users Found This Useful