Ever thought about managing your
cPanel account without a web browser? It sounds complicated, but using
SSH is actually a very effective way to access
cPanel. I started using SSH to access cPanel when my internet connection was so slow that I had to manage files via SSH, and certainly got much quicker performance this way. Let me explain.
Why should you use SSH with cPanel?
Why do you want to use SSH?
SSH allows you to log directly into your server. Basically, it is a 'backstage pass', where you can:
- Transfer files faster
- Edit files
- Run scripts that do not need to be opened in cPanel
- Check logs faster
You might have noticed that the cPanel website is slow at times? SSH solves that issue.
1. Open the Terminal
Open your Terminal for Linux. If you are using
Windows, you can use
PuTTY or
Windows Terminal.
2. Connect with SSH
Type this command:
ssh
username@yourserver.com -
p 2083
• username= your cPanel username
• yourserver.com= your domain name or server IP
•
-p 2083= the
cPanel port (WHM is sometimes
2222)
It will ask for your password. Enter it carefully. Note that nothing will appear on the screen but it is working.
Step 3: Getting to Your cPanel Directory
Once it connects, you are in your server. Below are some good commands:
ls - show me the files and directories
cd public_html - go to the website files
nano filename - to open a file for editing
At first, this magic can seem a little frightening, but after a couple of tries, you'll find it quite easy.
Step 4: Be Careful with Commands
SSH is very powerful. You can:
- Backup files with tar.
- Change file permissions with chmod.
- Check server utilization with top.
You need to be careful! An incorrect command can break things. Double check your command before hitting Enter!
Tips to remember
- Always use a strong SSH password
- Consider trying key-based login for added security
- Do NOT run commands you do not understand
Ending Thoughts
In conclusion,
accessing cPanel via SSH is much quicker, safer, and provides you more control than accessing cPanel access via the web browser interface. You will be amazed how much easier
server management is once you start to use
SSH.
So, open your terminal and enter the
SSH command to start exploring your server like the professional you have become! Plus, you can it is pretty exciting to see your commands running live on the screen!