You work inside your own hosting account, not as the server’s administrator. You can’t install system software or use
sudo. For full control, use a HostCloud VPS.Use Terminal in cPanel
1
Open Terminal
Log in to cPanel, type Terminal in the Search Tools box and open it.
2
Accept the warning
The first time, cPanel warns that commands can change or delete your files. Read it and continue.
3
Run your commands
A command line opens in your home folder. Your website files are in
public_html. For example, type cd public_html and press Enter, then ls to list the files.Use SSH from your computer
SSH logs in with a key: a pair of matching files. The public key stays on the server. The private key stays on your computer and works like a password.Step 1: Create a key in cPanel
1
Open SSH Access
In cPanel, type SSH Access in the Search Tools box and open it. Click Manage SSH Keys.
2
Generate a key
Click Generate a New Key. Give it a name, set a strong passphrase, and click Generate Key.
3
Authorise the key
Go back to the key list. Under Public Keys, click Manage next to your new key, then Authorize. A key that isn’t authorised can’t log in.
4
Download the private key
Under Private Keys, click View/Download next to your key and download it. Use the PPK format if you use PuTTY on Windows.
Step 2: Connect
On Mac, Linux or Windows 10/11, open a terminal app and run:
path/to/your-key, cpanelusername and server-hostname with your own details. Enter your key’s passphrase when asked.
Deploying code from GitHub or GitLab? See Deploy your website from Git.
Still stuck? Open a ticket with your domain name and the exact error you see.