Web Hosting / cPanel

How to Use the CPanel Terminal to Access the Command Line

Jan 04, 2023
2 min read
cPanel Terminal

If your web host allows, you can easily access SSH via the Terminal feature in cPanel. The SSH protocol enables you to remotely manage your server, including configuring CGI scripts and other tasks.

If you require SSH access to upload and download files using an FTP program manually, you will need to configure SSH Access.

Note: The Terminal should only be used by users who know what they are doing. Entering the wrong commands here can render your server inoperable.

How to access SSH using the cPanel Terminal

Accessing your server using the Terminal feature is as simple as logging into your cPanel account and clicking a couple of links.

How to Terminate a Terminal Session

To terminate the session, type exit:

[thewebmaster@webmaster ~]$ exit

Troubleshooting \ FAQs

Why can't I see the option to use the Terminal in cPanel

Not all web hosting providers allow access to the command line. Sometimes, it may be disabled by default but will be activated on request.

If in doubt, you should open a ticket with your hosting provider.

Can I use the 'sudo' command on shared hosting servers?

The sudo command allows users to run commands as the root or superuser. You will not be allowed to use the sudo command for shared hosting accounts.

If you require such access, you will need VPS or Cloud hosting.