What is SSH?
SSH, also known as Secure Socket Shell, is a network protocol that allows two computers to communicate over a secure network and share data. SSH is one of the safest ways to transfer files/data from the remote server to a local computer. It’s majorly used by the system administrators. SSH uses the Public Key Cryptography function to authenticate the remote computer which makes it more secure.
Suspend/Unsuspend cPanel Accounts via SSH
You can easily suspend/unsuspend any cPanel account via SSH by following the below steps:
- First of all, log into the SSH account by using valid credentials. You can use any SSH-client software such as PuTTY to log into SSH.
Note: To perform this task, you must have root access to your server. This task cannot be done without root privileges.
- Once you have logged into your SSH account, type the below command to Suspend a particular cPanel user account.
# /scripts/suspendacct username "Reason"
- You can use the below image as an example.
- I just suspended a cPanel account by typing several words. Don’t you think it’s the easiest method to suspend or ban any cPanel account? Yes, it is.
- Likewise, you can Unsuspend any cPanel account easily. The command we’ll use to unsuspend a cPanel account is almost similar to the command we used earlier to suspend a cPanel account. Follow the below command to unsuspend or unban any cPanel account.
# /scripts/unsuspendacct username
- Again, view the below image as an example.
Suspend/Unsuspend cPanel Accounts from WHM
Other than suspending or suspending cPanel accounts from SSH, you can also do the same from your Web Host Manager (WHM). The only benefit you will get if you perform this task from WHM is its interface. It’s easy to suspend or unsuspend any cPanel account from WHM. Even a beginner can do it easily after reading this article. Follow the below steps to Suspend/Unsuspend cPanel Accounts from WHM.
Also See:
- First of all, log into the WHM control panel.
- From your WHM dashboard, type List account in the search bar located in the top left corner of the page, or you can simply navigate to the Account Information > List Account.
- There you’ll find all the domains hosted on your server along with their usernames and other details.
- Find the domain you want to suspend and hit the + icon.
- Once you click on the + icon, several options will expand, Hit the Suspend button, and you’re done.
- You’ve successfully suspended a cPanel account from WHM. Repeat the same step to spend other cPanel accounts.
- To unsuspend a cPanel account or to view the list of all suspended cPanel accounts, type list in the search bar and hit the List Suspended Accounts button.
That’s It.
This is how you can easily suspend or unsuspend a cPanel account using the above methods.
PRO TIP: For Shared Hosting users, it’s important to purchase an SSH-enabled Shared Hosting plan. If you’re a shared hosting user and purchased a plan in which SSH isn’t included, you’ll not be able to log into your SSH.
Shared Hosting users can also use SSH at a user level.
I hope this article helps you. If not, you can contact us on Facebook and Twitter and message us your queries. We’ll be happy to assist you. You can also hit the comment section to ask anything you don’t understand in this tutorial.