SSH access and Terminal
You need the command line for tasks such as extracting a large archive, quickly copying and compressing folders, or running PHP scripts. cPanel hosting gives you two ways to do this:
Terminal in the browser
The easiest way: open Advanced → Terminal, and a terminal opens in your browser, already logged in to your account, with no software or setup needed. The first time, a warning appears; click I understand and want to proceed.
Commands run with your account's permissions only, inside your /home/username folder. Examples:
cd public_html # go to the website folder
unzip site.zip # extract an archive
tar -czf backup.tar.gz public_html # compress an entire folder
du -sh * # size of each folder
php -v # PHP versionConnect over SSH from your computer
To use programs such as PuTTY or your computer's terminal, or to upload files over SFTP with a program such as FileZilla, connect with an SSH key:
1. Generate or import a key
Open Security → SSH Access → Manage SSH Keys:
- Generate a New Key: cPanel creates a key pair. Enter a password for the key, then download the private key from View/Download (in PPK format if you use PuTTY).
- Import Key: if you already have a key on your computer, paste the public key only.

2. Authorize the key
In the Public Keys list, click Manage next to the key, then Authorize. The server won't accept a key that isn't authorized.
3. Connect
- Username: your cPanel username.
- Server: your domain name.
- Port: you'll find it in the SFTP configuration file you download from Files → FTP Accounts → Configure FTP Client next to your main account. It contains the server and port, ready for your program.
ssh -i ~/.ssh/id_rsa [email protected] -p PORTAnyone who has the private key file can get into your account. Never send it to anyone, and if you generated it in cPanel, delete it from cPanel after downloading it. If you lose a device that holds the key, delete the public key from Manage SSH Keys immediately.
To upload files without the command line, see Upload your site with File Manager and FTP.
How is this guide?
Cron Jobs
Run a command or script on your hosting automatically at times you choose: every few minutes, every hour or every day, with ready-made examples for PHP and WordPress.
Resource usage and account limits
Learn your account's CPU, memory, process and I/O limits, what it means to reach them, and how to find out what is using them.